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
In order to support generator functions that access the arguments object, we need to save a reference to the arguments of the outer function in a freshly-named variable, and then rename all free references to arguments in the inner function.
It's tempting to just store the arguments object as context.args, but I'm not sure that would preserve the parameter aliasing behavior of arguments (i.e., if you modify arguments, you're also modifying the actual parameters passed to the function, and vice-versa).
The text was updated successfully, but these errors were encountered:
In order to support generator functions that access the
arguments
object, we need to save a reference to thearguments
of the outer function in a freshly-named variable, and then rename all free references toarguments
in the inner function.It's tempting to just store the
arguments
object ascontext.args
, but I'm not sure that would preserve the parameter aliasing behavior ofarguments
(i.e., if you modifyarguments
, you're also modifying the actual parameters passed to the function, and vice-versa).The text was updated successfully, but these errors were encountered: