Self-recursion and arrow functions

Jason Orendorff jason.orendorff at
Sat Mar 16 17:09:01 PDT 2013

On Sat, Mar 16, 2013 at 4:53 PM, Brendan Eich <brendan at> 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...
URL: <>

More information about the es-discuss mailing list