Skip to content
New issue

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

Support the arguments object #4

Closed
benjamn opened this issue Oct 5, 2013 · 0 comments
Closed

Support the arguments object #4

benjamn opened this issue Oct 5, 2013 · 0 comments

Comments

@benjamn
Copy link
Collaborator

benjamn commented Oct 5, 2013

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant