restrictions on module import export names

John Lenz concavelenz at
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: <>

More information about the es-discuss mailing list