Skip to content

Commit a4c7da9

Browse files
committed
Editorial: Bugfix: Prevent mis-application of Implicit Normal Completion (#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.
1 parent ea48cf5 commit a4c7da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21062,7 +21062,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2106221062
1. Set the running execution context's LexicalEnvironment to _blockEnv_.
2106321063
1. Let _blockValue_ be Completion(Evaluation of |StatementList|).
2106421064
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
21065-
1. Return _blockValue_.
21065+
1. Return ? _blockValue_.
2106621066
</emu-alg>
2106721067
<emu-note>
2106821068
<p>No matter how control leaves the |Block| the LexicalEnvironment is always restored to its former state.</p>

0 commit comments

Comments
 (0)