M.x is the local variable, because otherwise changes in the exports of `"foo"` could, unbenknownst to M, cause an error.
Also, I misspoke earlier. The error is only if you *use* M.x, for the same reason. Sam On Thu, Jun 13, 2013 at 3:48 PM, Kevin Smith <[email protected]> wrote: > What about the following case? > > // M > export * from "foo"; > export var x = 1; > > // foo > export var x = 2; > > Would M.x be bound to the local variable, or would this be an error as well? > > { Kevin } _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

