Should arrow functions have arguments or capture arguments bindings

# Ian Halliday (12 years ago)

The draft spec has a note in 9.2.13 Function Declaration Instantiation about arrow functions and arguments:

Issue: should concise methods also not get an arguments object?

From rev16 it appears.

Section 9.2.13 also has a large banner stating that it is old and will change re concensus made in the Sept 2013 TC39 meeting.

I can't see any mention of arguments and arrow functions in the Sept 2013 meeting notes so is it safe to assume this behavior hasn't changed? Given the note is this still an open issue?

If arguments is not added to the arrow function's var bindings, does this mean an arrow function should capture variables named arguments from the enclosing scope?

E.g.

function f () {
    var x = () => arguments; // captures f()'s implicit arguments
    {
        let arguments;
        var y = () => arguments; // captures lexical local variable
    }
}