"use strict"; prepended blindly to scripts in the wild
dean at deanlandolt.com
Wed Sep 8 15:35:47 PDT 2010
On Wed, Sep 8, 2010 at 6:25 PM, felix <felix8a at gmail.com> wrote:
> in the Names strawman, "private foo" at the top level has the same problem
> as "use strict" at the top level. maybe there should be a general way of
> delimiting a top-level lexical scope, so that pasting js together is still
> relatively easy?
/* strict code */
Not sure if this is legit -- I seem to recall something about "use strict";
being scoped at the block level (or at least that you can scope a specific
if block). If so, wouldn't this suffice?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss