Conflicts using export *

Sam Tobin-Hochstadt samth at ccs.neu.edu
Thu Jun 13 12:58:52 PDT 2013


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 <zenparsing at gmail.com> 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 }


More information about the es-discuss mailing list