arguments.callee in Harmony

Brendan Eich brendan at mozilla.com
Fri Sep 25 16:23:51 PDT 2009


On Sep 25, 2009, at 4:22 PM, Charles Jolley wrote:

>> Not sure how you can assume the latter from the former:
>
> if (! function() { "use strict"; return this; }()) {
> "use strict";
>
> /* I'm an ES5 browser and DEFINITELY in strict mode now; doesn't  
> matter what came before me... */
> }

Gotcha -- I wouldn't call that assuming, since you had to say "use  
strict" twice. But I was being a logic nerd. Carry on!

/be



More information about the es-discuss mailing list