Delaying execution of modules in the loader

Kevin Smith zenparsing at gmail.com
Fri Aug 22 09:41:51 PDT 2014


On Tue, Aug 19, 2014 at 2:55 PM, Guy Bedford <guybedford at gmail.com> wrote:

> The loader is designed to enable deferred execution, but there isn't an
> easy hook to allow this that I know of.
>
> System.define is the only load function that does not ensure execution.
> The others (System.import, System.load, System.module), run an
> EnsureEvaluated call to run the scripts.
>

This doesn't sound right to me (but I could be misunderstanding the spec).

By my reading, "EvaluateLoadedModule" is only called for
Loader.prototype.import and Loader.prototype.module.

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140822/12294899/attachment.html>


More information about the es-discuss mailing list