There are still unresolved issues in the Rev22 spec. with the newModule (or 
possibly new Module) API. t probably needs to say that any property names must 
conform to IdentifierName.

The grammar requirement of IdentifierName is intentional and I don't believe 
there is any intent to allow that restriction to be circumvented via the Module 
API.

Allen

On Jan 29, 2014, at 8:54 AM, John Lenz wrote:

> I assume that I can access this like so:
> 
> var mod = newModule({'a.b.c':1})
> use(mod['a.b.c']);
> 
> It isn't clear to me why imports and export names are restricted.
> 
> 
> 
> On Wed, Jan 29, 2014 at 8:40 AM, Kevin Smith <[email protected]> wrote:
> // 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.
> 
> 
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to