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

Iterator function doesn't accept the arguments object. #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Iterator function doesn't accept the arguments object. #54

wants to merge 2 commits into from

Conversation

Naddiseo
Copy link

Currently the implementation of the iterator protocol doesn't accept an Arguments object.

Testcase:

function test() {
    console.log(...arguments);
}
test(1, 2, 3); // => should print "1 2 3"

This PR is one solution to the problem. I would have updated the tests, but there are too many to do by hand.

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

Successfully merging this pull request may close these issues.

2 participants