termi / es6-transpiler

Tomorrow's JavaScript syntax today
Other
216 stars 18 forks source link

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

Open Naddiseo opened 9 years ago

Naddiseo commented 9 years ago

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.