Self-recursion and arrow functions
jason.orendorff at gmail.com
Sat Mar 16 17:09:01 PDT 2013
On Sat, Mar 16, 2013 at 4:53 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Jason Orendorff wrote:
>> Functions with default arguments have the same weird problem. You can
>> still do it in one pass, but you have to track "this
>> parameter-default-value-**expression contains code that would not be
>> allowed if the enclosing function turns out to be strict". You won't know
>> that it's strict until you see the "use strict" directive which is in the
>> function *body*.
> Same problem (but semantic check, not syntactic) for duplicate formals
> banned in ES5 strict, right?
Ah—yes, that's true.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss