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

each function should have formal parameters and a length property. #6

Open
MichaelBuhler opened this issue Jul 4, 2023 · 1 comment

Comments

@MichaelBuhler
Copy link
Owner

And the formal parameters ought to be 'destructured' by name out of the arguments/params and put on the scope/activation/variables object prior to invocation.

@MichaelBuhler
Copy link
Owner Author

Formal parameters were implemented in 8e2dbd4, but the Object does not have any visibility into them. Because of this, the length property cannot be computed and set on the Function object.

Also, because the Object does not have visibility into the string names (Identifiers) of the formal parameters, Function.prototype.toString cannot produce an accurate representation of the function, which is required by the spec.

@MichaelBuhler MichaelBuhler changed the title Each function should have formal parameters and a length property. each function should have formal parameters and a length property. Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant