We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When compiling async functions to generators, super in async methods do not work correctly.
// Options: --async-functions --generators=parse --classes=parse class B { m() { console.log('B-m'); } } class C extends B { async m() { super.m(); } } new C().m();
compiles to:
$traceurRuntime.ModuleStore.getAnonymousModule(function() { "use strict"; class B { m() { console.log('B-m'); } } class C extends B { m() { return $traceurRuntime.spawn(this, null, function*() { super.m(); }); } } new C().m(); return {}; }); //# sourceURL=traceured.js
which of course does not work.
We need to transform that super.m using the SuperTransformer to:
super.m
$traceurRuntime.superGet(this, C.prototype, "m").call(this);
The text was updated successfully, but these errors were encountered:
arv
No branches or pull requests
When compiling async functions to generators, super in async methods do not work correctly.
compiles to:
which of course does not work.
We need to transform that
super.m
using the SuperTransformer to:The text was updated successfully, but these errors were encountered: