Ye olde arguments argument (was: Topic list - pending changes and issues for the ES3.1 spec)

Mike Shaver mike.shaver at gmail.com
Mon Sep 15 13:40:12 PDT 2008


On Mon, Sep 15, 2008 at 4:32 PM, Jon Zeppieri <jaz at bu.edu> wrote:
> Any magically bound variable breaks TC.  The expression
>
>  callee
>
> should have the same meaning as
>
>  (function() { return callee; })()
>
> ...and it clearly does not.

True, but it doesn't work for "arguments" or "arguments.callee"
either, so I'm not sure it's much of a loss to do something like that
here.

The important thing here seems to be decoupling "called function
capture" from "arguments to this function", since people are meaning
to do the latter and inadvertently doing the former.

Mike


More information about the Es-discuss mailing list