My bad: I should have made it clear that I wanted top-level blocks in strict mode. Modules are implicitly in strict mode, normal code blocks aren’t. I was looking for a way to avoid `'use strict';`
On 05 Nov 2013, at 3:03 , Jason Orendorff <[email protected]> wrote: > On Mon, Nov 4, 2013 at 5:36 AM, Axel Rauschmayer <[email protected]> wrote: >> What is the best way to create top-level scopes in ES6? > > I guess I am probably missing something important, but I thought you > could just write a block and use `let` in it: > > { > let foo = ...; > ... > } > > even in sloppy mode. > > -j > -- Dr. Axel Rauschmayer [email protected] home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

