Skip to content

Commit

Permalink
Editorial: Bugfix: Prevent mis-application of Implicit Normal Complet…
Browse files Browse the repository at this point in the history
…ion (tc39#2744)

Formerly, in the Evaluation semantics for `Block`,
the return of `_blockValue_` was subject to implicit NormalCompletion,
but this wasn't valid when it was an abrupt completion.
  • Loading branch information
jmdyck committed Jul 31, 2022
1 parent ea48cf5 commit a4c7da9
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 @@ -21062,7 +21062,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 a4c7da9

Please sign in to comment.