Skip to content

Commit

Permalink
Fix bug: Prevent mis-application of Implicit Normal Completion
Browse files Browse the repository at this point in the history
Currently, `_blockValue_` is subject to implicit NormalCompletion,
but this isn't valid when it's an abrupt completion.
  • Loading branch information
jmdyck committed Apr 18, 2022
1 parent d613230 commit ce76c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -21076,7 +21076,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Set the running execution context's LexicalEnvironment to _blockEnv_.
1. Let _blockValue_ be Completion(Evaluation of |StatementList|).
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
1. Return _blockValue_.
1. Return ? _blockValue_.
</emu-alg>
<emu-note>
<p>No matter how control leaves the |Block| the LexicalEnvironment is always restored to its former state.</p>
Expand Down

0 comments on commit ce76c9e

Please sign in to comment.