Allen Wirfs-Brock (2014-06-10T23:04:05.000Z)
domenic at domenicdenicola.com (2014-06-17T20:41:52.987Z)
On Jun 10, 2014, at 2:31 PM, Garrett Smith wrote: > I'm guessing that applies for any early error. Early errors are handled as part of [ScriptEvaluationTask](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-scriptevaluationtask) If an early error is detected the Task competes normally, but without executing any ES code, > ```html > <script> > var tew; > continue; // early error; `tew` is not bound. > </script> > > <script> > alert(rrq); > var rrq; > g; // ReferenceError, not an early error; `rrq` is bound. > </script> > ``` Everything mentioned below is handled by [GlobalDeclarationInstantiation](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-globaldeclarationinstantiation). The order in which this occurs for individual scripts is the order in which the corresponding ScriptEvaluationTasks are are enqueued in the "ScriptTasks" queue. There are different evaluation paths (some of which may still need to be defined) for modules.