On Thu, Dec 18, 2014 at 6:01 PM, Mark S. Miller <erig...@google.com> wrote: > > (1,eval)("" + function(){...strict code you want to execute sloppy...})() >
This doesn't work in SpiderMonkey: stringifying functions retains their strictness, no matter where strict mode is activated. In this case, the result would be the string 'function (){\n"use strict";\n...strict code you want to execute sloppy...}' It's unfortunate that this doesn't behave the same in all engines, but I would argue that SpiderMonkey's stringification is the more faithful one.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss