Open Bug 1044467 Opened 8 years ago Updated 4 years ago

Reflect.parse: Support new `import * as X from "Y"` alternative of `module X from Y`

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

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.
OS: Windows 8.1 → All
Hardware: x86_64 → All
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.
Seems to be already confirmed.
Flags: needinfo?(jorendorff)
Blocks: es6
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jorendorff)
Blocks: 1173387
No longer blocks: es6
You need to log in before you can comment on or make changes to this bug.