es6-transpiler
es6-transpiler copied to clipboard
Iterator function doesn't accept the arguments object.
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.