Skip to content

Commit 6eaf3ef

Browse files
committed
Address additional editor feedback (from async PR)
1 parent b1b3135 commit 6eaf3ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22311,7 +22311,8 @@ <h1>
2231122311
1. Else,
2231222312
1. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_, ~normal~)).
2231322313
1. If _status_ is an abrupt completion, then
22314-
1. Set _status_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _status_)).
22314+
1. If _iterationEnv_ is not *undefined*, then
22315+
1. Set _status_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _status_)).
2231522316
1. Assert: _status_ is an abrupt completion.
2231622317
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
2231722318
1. If _iteratorKind_ is ~async~, return ? AsyncIteratorClose(_iteratorRecord_, _status_).
@@ -22321,7 +22322,8 @@ <h1>
2232122322
1. Assert: _iterationKind_ is ~iterate~.
2232222323
1. Return ? IteratorClose(_iteratorRecord_, _status_).
2232322324
1. Let _result_ be Completion(Evaluation of _stmt_).
22324-
1. Set _result_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _result_)).
22325+
1. If _iterationEnv_ is not *undefined*, then
22326+
1. Set _result_ to Completion(DisposeResources(_iterationEnv_.[[DisposeCapability]], _result_)).
2232522327
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
2232622328
1. If LoopContinues(_result_, _labelSet_) is *false*, then
2232722329
1. If _iterationKind_ is ~enumerate~, then
@@ -31241,8 +31243,8 @@ <h1>SuppressedError ( _error_, _suppressed_, _message_ [ , _options_ ] )</h1>
3124131243
1. If NewTarget is *undefined*, let _newTarget_ be the active function object; else let _newTarget_ be NewTarget.
3124231244
1. Let _O_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%SuppressedError.prototype%"*, « [[ErrorData]] »).
3124331245
1. If _message_ is not *undefined*, then
31244-
1. Let _msg_ be ? ToString(_message_).
31245-
1. Perform CreateNonEnumerableDataPropertyOrThrow(_O_, *"message"*, _msg_).
31246+
1. Let _messageString_ be ? ToString(_message_).
31247+
1. Perform CreateNonEnumerableDataPropertyOrThrow(_O_, *"message"*, _messageString_).
3124631248
1. Perform ? InstallErrorCause(_O_, _options_).
3124731249
1. Perform CreateNonEnumerableDataPropertyOrThrow(_O_, *"error"*, _error_).
3124831250
1. Perform CreateNonEnumerableDataPropertyOrThrow(_O_, *"suppressed"*, _suppressed_).

0 commit comments

Comments
 (0)