Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemJSConstructor is not getting called when extending System.constructor and transpile with Babel #786

Closed
katrotz opened this issue Sep 16, 2015 · 1 comment

Comments

@katrotz
Copy link

katrotz commented Sep 16, 2015

Trying to extend the System.constructor in a ES2015 class syntax and transpile with Babel the SystemJSLoader is not getting invoked.

The issue is only reproducible with Babel transpiler, Traceur works fine. The discrepancy hides in the way super is implemented:

Babel: _get(Object.getPrototypeOf(SubClass.prototype), 'constructor', this).call(this); which returns the constructor of SuperClass prototype
Traceur: $traceurRuntime.superConstructor(SubClass).call(this); which returns the SuperClass

Note: Related issue on babel side: babel/babel#2048

@guybedford
Copy link
Member

Released in 0.19.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants