Delaying execution of modules in the loader

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

On Tue, Aug 19, 2014 at 2:55 PM, Guy Bedford <guybedford at> 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: <>

More information about the es-discuss mailing list