simpler, sweeter syntax for modules
brendan at mozilla.org
Thu Mar 22 10:32:22 PDT 2012
John J Barton wrote:
> I guess you mean: a special form evaluated before the outer function
> runs? Surely this form is not off-line.
No, before anything in the containing Program (up to the <script>
container) runs. Modules are prefetched, not loaded by a nested event
loop that violates run-to-completion (or unthinkable: starves the
same-page-context UI to preserve r-t-c by queueing events).
More information about the es-discuss