es6-transpiler icon indicating copy to clipboard operation
es6-transpiler copied to clipboard

Iterator function doesn't accept the arguments object.

Open Naddiseo opened this issue 10 years ago • 0 comments

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.

Naddiseo avatar Sep 16 '14 20:09 Naddiseo