Skip to content

Commit ce76c9e

Browse files
committed
Fix bug: Prevent mis-application of Implicit Normal Completion
Currently, `_blockValue_` is subject to implicit NormalCompletion, but this isn't valid when it's an abrupt completion.
1 parent d613230 commit ce76c9e

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
@@ -21076,7 +21076,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2107621076
1. Set the running execution context's LexicalEnvironment to _blockEnv_.
2107721077
1. Let _blockValue_ be Completion(Evaluation of |StatementList|).
2107821078
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
21079-
1. Return _blockValue_.
21079+
1. Return ? _blockValue_.
2108021080
</emu-alg>
2108121081
<emu-note>
2108221082
<p>No matter how control leaves the |Block| the LexicalEnvironment is always restored to its former state.</p>

0 commit comments

Comments
 (0)