Self-recursion and arrow functions
brendan at mozilla.com
Sat Mar 16 16:53:54 PDT 2013
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?
Yes, it's a pain. Pretty sure nothing can be done about it, though.
More information about the es-discuss