ES6 doesn't need opt-in

Brendan Eich brendan at
Thu Jan 5 11:16:51 PST 2012

On Jan 5, 2012, at 11:10 AM, Brendan Eich wrote:

>> That precluded a number of highly undesirable
>> combinations, e.g. extended mode nested into a "with" statement.
> You can "use strict"; in a with statement's body block.

Sorry to be unclear, I meant examples such as this:

js> with ({p:1}) { print(function () {"use strict"; return p;}()); }

The strict function expression still has to cope with the nasty object scope environment on its outside.


More information about the es-discuss mailing list