Module Comments

Andreas Rossberg rossberg at
Sun Dec 9 03:45:45 PST 2012

On 9 December 2012 02:10, Kevin Smith <khs4473 at> wrote:
> So if you didn't set the anonymous binding in some module "x.js", what would
> this do:
>     import x from "x.js";
> Would x be bound to the module instance or would we get a binding error?

Since it is just sugar, and supposed to be equivalent to the
expansion, you (fortunately) would get an error (statically).


More information about the es-discuss mailing list