restrictions on module import export names

Kevin Smith zenparsing at gmail.com
Wed Jan 29 08:40:43 PST 2014


>
> // a.js
>
> var foo = 1;
> export foo as 'a.b.c';
>
> // b.js
>
> import 'a.b.c' as foo from "a.js"
>
>
That is not valid.  Export binding names (where you have 'a.b.c') must be
IdentifierName.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/7a89d540/attachment.html>


More information about the es-discuss mailing list