- JSLint now prohibits assignment to the arguments pseudoarray.
The problem is that arguments is not a snapshot of the arguments that
are bound to the parameters. It remains linked, so changing an
elements of the arguments array changes a parameter.
- JSLint now warns about arguments.callee and arguments.caller. These will not be available in future editions of the language, so it is best to start avoiding them now.
- On Thu, Sep 9, 2010 at 3:11 AM, Douglas Crockford <douglas@...> wrote:
> JSLint now warns about arguments.callee and arguments.caller. These will not be availableI don't foresee browser makers removing the functionality, especially
> in future editions of the language, so it is best to start avoiding them now.
given it's prevalence in libraries that emulate some form of classical
inheritance (run a quick grep through closure and yui3, for instance).
I'd suggest making this change optional, which would allow me to
disable the test for the single file in which I use `callee`/`caller`,
and throw warnings for any other inadvertent uses.