restrictions on module import export names

John Lenz concavelenz at gmail.com
Wed Jan 29 08:35:28 PST 2014


I'm wondering if this is valid (or should be):

// a.js

var foo = 1;
export foo as 'a.b.c';

// b.js

import 'a.b.c' as foo from "a.js"

The reason I ask is Modules appear to support have any valid property name
(anything) as an export if the Module is defined directly using "newModule".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/5f231c0c/attachment.html>


More information about the es-discuss mailing list