On Jan 18, 2010, at 5:20 PM, [email protected] wrote:
On Mon, Jan 18, 2010 at 4:54 PM, Brendan Eich <[email protected]>
wrote:
That's right -- no races, execution still seems single-threaded.
Wherefore
the special form, although if this line is in a seldom-executed
branch you
still have the hit of loading B up front.
Right. The optimization in this case is that the runtime could delay
loading B and, if B is encountered, *block* the currently running
event loop and fetch B.
So the spec is that import could nest an event loop? What scripts or
event handlers/timeouts/etc. could run at that point? In general
breaking the run-to-completion execution model means the importing
script and its containing window could be destroyed, a zombie.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss