How are modules imported from a ScriptBody without System?
d at domenic.me
Mon Dec 8 08:27:13 PST 2014
The situation that modules are in now is equivalent to the situation scripts are in. That is, the way that they are loaded, executed, parsed, embedded in other languages, etc. is not specified by the ECMAScript language specification, and is left for other specifications.
For the case of scripts, the answers to this are found in the HTML Standard. For modules, the corresponding spec has not yet been written.
From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Isiah Meadows
Sent: Monday, December 8, 2014 11:24
To: es-discuss at mozilla.org
Subject: How are modules imported from a ScriptBody without System?
Without the System loader, it is no longer clear to me from within the spec how modules are supposed to be imported within normal scripts (e.g. in web pages).
Formerly, this was done via `System.import()`.
Also, this removal seems to have left quite a bit of spec equivalent to dead code, along with a few other inconsistencies, most notably a distinct disconnect between loading a ModuleBody and a ScriptBody, with no apparent way for a ScriptBody to load a ModuleBody. This concerns me a little.
es-discuss mailing list
es-discuss at mozilla.org
More information about the es-discuss