Open
Bug 1044467
Opened 10 years ago
Updated 2 years ago
Reflect.parse: Support new `import * as X from "Y"` alternative of `module X from Y`
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: me, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 (Beta/Release)
Build ID: 20140721004001
Steps to reproduce:
As per http://jsmodules.io/ and confirmed by Domenic https://twitter.com/domenic/status/492735348590399488, `module X from "Y"` will be deprecated and replaced with `import * as X from "Y"`.
(Also already supported by https://github.com/toshok/echo-js)
This is not in spec yet, but most likely will be there next week, so decided to post it here so we could refer to this discussion easily after changes will be landed.
Expected results:
I've already added support for this into Acorn. However, since existing node types are not enough to represent such use case, I've decided to add ImportBatchSpecifier (analogue of existing ExportBatchSpecifier). Not sure if this is the best possible solution, so open to discussions.
Reporter | ||
Updated•10 years ago
|
OS: Windows 8.1 → All
Hardware: x86_64 → All
Comment 1•10 years ago
|
||
There was some sort of change here but it's not clear what it was. It can wait for the next ES6 draft, I think.
Reporter | ||
Comment 2•10 years ago
|
||
Seems to be already confirmed.
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(jorendorff)
Updated•10 years ago
|
Updated•9 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•