System.import()?

Jason Orendorff jason.orendorff at gmail.com
Tue Aug 18 17:09:16 UTC 2015


On Mon, Aug 17, 2015 at 5:02 PM, Domenic Denicola <d at domenic.me> wrote:
>> It's possible to make minor changes to HostResolveImportedModule and
>> then specify `System.import` in terms of that. [...]
>
> I don't understand. If it's in terms of HostResolveImportedModule, and HostResolveImportedModule is not implemented or specified in any way yet, introducing a new thing on top of that does not help the situation at all.

HostResolveImportedModule is widely implemented by compilers, though
not by browsers. People are writing, using, and sharing ES6 modules
today.

> In other words, it seems necessary to make `import "moduleSpec"` work before even thinking about how to make `System.import("moduleSpec")` work.

It is working, and the people using it have a need for the dynamic API
to go along with the static syntax, for reasons I pointed out in the
initial post.

-j


More information about the es-discuss mailing list