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
Minimal test case:
export const brokenArgsRest = async (...props) => { await someAsyncFunction(async () => { console.log(props) }) } export const someAsyncFunction = async callback => { await callback() }
generates
var brokenArgsRest = function brokenArgsRest() { return Promise.resolve(someAsyncFunction(function () { try { var _arguments2 = arguments; console.log([].slice.call(_arguments2)); return Promise.resolve(); } catch (e) { return Promise.reject(e); } })).then(function () {}); }; var someAsyncFunction = function someAsyncFunction(callback) { try { return Promise.resolve(callback()).then(function () {}); } catch (e) { return Promise.reject(e); } };
var _arguments2 = arguments; should be one more level up
var _arguments2 = arguments;
Context: We hit this bug on fcl-js lib : onflow/flow-js-testing#182
PS: my js knowledge is limited, but seems related to inlining somehow.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Minimal test case:
generates
var _arguments2 = arguments;
should be one more level upContext:
We hit this bug on fcl-js lib : onflow/flow-js-testing#182
PS: my js knowledge is limited, but seems related to inlining somehow.
The text was updated successfully, but these errors were encountered: