On Mon, May 28, 2012 at 12:34 PM, John J Barton <[email protected] > wrote:
> > On May 28, 2012 2:53 AM, "T.J. Crowder" <[email protected]> wrote: > > > > On 28 May 2012 06:37, John J Barton <[email protected]> wrote: > >> > >> A library writer creates an object in one scope and all of their tests > >> succeed. I use it another scope and my code fails. We are both using > >> legal statements. How can this not be a global effect? > > > > > > You're both using legal statements in the mode (variant) of the language > that _you_ have chosen to use in your execution context. > > Unfortunately I am not successful in communicating the problem here. > > In the example I described both variants are in the same execution context. > Perhaps this discussion would be aided by a more concrete example. Let's assume three files - lib.js, test.js and app.js. John, I believe in your example, lib and test would be written for strict mode, and app would be non-strict. ======= lib.js =========== "use strict"; //lib code here ======= test.js ========== "use strict"; //test code here, testing object from lib ======= app.js ========== //app code here using object from lib Fill in the gaps with something simple and I think we'll be able to get this sorted. I think there might be a communication issue here. - Russ
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

