Open zont opened 6 years ago
Thanks for the report! So, the setter or getter of a super class is called on the prototype of that super class instead of on the instance. When assigning to a super property, Babel checks at runtime of that super property has a setter and if it does calls that setter with the correct context (same applies for getters).
Source:
Result in console: A_111 B_111 undefined undefined
Buble compiled:
Result in console: A_111 B_111 A_111 undefined
For example, Babel compiled:
Result in console: A_111 B_111 undefined undefined