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
Input:
const outer = { value: 0, async method() { () => super.value; const inner = { value: 0, async method() { () => super.value; } }; () => super.value; } };
Desired output:
const outer = { value: 0, method() { var _superprop_getValue = () => super.value; return _asyncToGenerator(function* () { () => _superprop_getValue(); const inner = { value: 0, method() { var _superprop_getValue2 = () => super.value; return _asyncToGenerator(function* () { () => _superprop_getValue2(); })(); } }; () => _superprop_getValue(); })(); } };
Actual output:
const outer = { value: 0, method() { var _superprop_getValue3 = () => super.value; return _asyncToGenerator(function* () { // OOPS! `_superprop_getValue` doesn't exist () => _superprop_getValue(); const inner = { value: 0, method() { var _superprop_getValue2 = () => super.value; return _asyncToGenerator(function* () { () => _superprop_getValue2(); })(); } }; () => _superprop_getValue3(); })(); } };
I believe that when exiting a function which has super bindings, need to restore previous state of super_methods. It probably needs to be a stack.
super
super_methods
Babel REPL
Failing test: #7314
The text was updated successfully, but these errors were encountered:
Dunqing
No branches or pull requests
Input:
Desired output:
Actual output:
I believe that when exiting a function which has
super
bindings, need to restore previous state ofsuper_methods
. It probably needs to be a stack.Babel REPL
Failing test: #7314
The text was updated successfully, but these errors were encountered: