You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionouter(){letarguments=123;return_asyncToGenerator(function*(){return_arguments;// <-- `_arguments` does not exist});}functionouter2(){let{ arguments }={arguments: 123};return_asyncToGenerator(function*(){return_arguments2;// <-- `_arguments2` does not exist});}
This is pretty hard to solve as you may not discover that arguments needs to be renamed until quite deep in the function, and then you'd need to re-traverse the whole block where arguments var is bound to rename all references. Obviously we'd want to avoid all that unless it does need to be renamed.
Input:
Desired output:
Babel REPL
Actual output:
This is pretty hard to solve as you may not discover that
arguments
needs to be renamed until quite deep in the function, and then you'd need to re-traverse the whole block wherearguments
var is bound to rename all references. Obviously we'd want to avoid all that unless it does need to be renamed.Also,
arguments
can be defined after it's used:or even:
The text was updated successfully, but these errors were encountered: