System.import()?

Domenic Denicola d at domenic.me
Tue Aug 18 21:46:59 UTC 2015


From: Jason Orendorff [mailto:jason.orendorff at gmail.com]


> Here's what I had in mind:

I have re-read this a few times and still don't understand how you expect this to be implemented in a standards-compliant way given that HostResolveImportedModule is not standardized. It doesn't seem to change the equilibrium at all.

If this is just to help transpilers, well, they can already do whatever they want, with no guarantees of future compatibility, like they are doing now. They already invented nonstandard semantics for HostResolveImportedModule; they might as well add a nonstandard property like `System` to the global and give it a nonstandard method named `import` with nonstandard behavior.



More information about the es-discuss mailing list