army8735 / jsdc

Javascript Downcast (es6 to es5)
http://army8735.me/jsdc
93 stars 12 forks source link

set/get重复报错 #28

Closed army8735 closed 9 years ago

army8735 commented 9 years ago
Cannot redefine property

class的同名属性进行set和get方法设置后,因转换为两次同名的Object.defineProperty操作报错。 先用一个临时变量存储之,最后进行统一get、set。