Skip to content

Commit

Permalink
Editorial: Fix reference in ScriptEvaluation (#659)
Browse files Browse the repository at this point in the history
Fixes dangling reference to ScriptBody. Resolves #587.
  • Loading branch information
shvaikalesh authored and bterlson committed Aug 12, 2016
1 parent 3cb478a commit 3f864e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -19628,9 +19628,10 @@ <h1>ScriptEvaluation ( _scriptRecord_ )</h1>
1. Set the LexicalEnvironment of _scriptCxt_ to _globalEnv_.
1. Suspend the currently running execution context.
1. Push _scriptCxt_ on to the execution context stack; _scriptCxt_ is now the running execution context.
1. Let _result_ be GlobalDeclarationInstantiation(|ScriptBody|, _globalEnv_).
1. Let _scriptBody_ be _scriptRecord_.[[ECMAScriptCode]].
1. Let _result_ be GlobalDeclarationInstantiation(_scriptBody_, _globalEnv_).
1. If _result_.[[Type]] is ~normal~, then
1. Let _result_ be the result of evaluating |ScriptBody|.
1. Let _result_ be the result of evaluating _scriptBody_.
1. If _result_.[[Type]] is ~normal~ and _result_.[[Value]] is ~empty~, then
1. Let _result_ be NormalCompletion(*undefined*).
1. Suspend _scriptCxt_ and remove it from the execution context stack.
Expand Down

0 comments on commit 3f864e4

Please sign in to comment.