termi / es6-transpiler

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

Make arrow functions use lexical arguments #30

Open termi opened 10 years ago

termi commented 10 years ago

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-arrow-function-definitions-runtime-semantics-evaluation

function test() {
    var args = (() => arguments)();
    assert.equal(args, arguments);
}
test();