WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit be305fc

Browse files
aapoalasljharb
authored andcommitted
Editorial: Unify style of abrupt completion and non-LoopContinues result handling in ForIn/OfBodyEvaluation (#3595)
1 parent 3f47f6c commit be305fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22402,20 +22402,20 @@ <h1>
2240222402
1. Let _status_ be Completion(InitializeReferencedBinding(_lhsRef_, _nextValue_)).
2240322403
1. If _status_ is an abrupt completion, then
2240422404
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
22405-
1. If _iteratorKind_ is ~async~, return ? AsyncIteratorClose(_iteratorRecord_, _status_).
2240622405
1. If _iterationKind_ is ~enumerate~, then
2240722406
1. Return ? _status_.
2240822407
1. Else,
2240922408
1. Assert: _iterationKind_ is ~iterate~.
22409+
1. If _iteratorKind_ is ~async~, return ? AsyncIteratorClose(_iteratorRecord_, _status_).
2241022410
1. Return ? IteratorClose(_iteratorRecord_, _status_).
2241122411
1. Let _result_ be Completion(Evaluation of _stmt_).
2241222412
1. Set the running execution context's LexicalEnvironment to _oldEnv_.
2241322413
1. If LoopContinues(_result_, _labelSet_) is *false*, then
22414+
1. Set _status_ to Completion(UpdateEmpty(_result_, _V_)).
2241422415
1. If _iterationKind_ is ~enumerate~, then
22415-
1. Return ? UpdateEmpty(_result_, _V_).
22416+
1. Return ? _status_.
2241622417
1. Else,
2241722418
1. Assert: _iterationKind_ is ~iterate~.
22418-
1. Set _status_ to Completion(UpdateEmpty(_result_, _V_)).
2241922419
1. If _iteratorKind_ is ~async~, return ? AsyncIteratorClose(_iteratorRecord_, _status_).
2242022420
1. Return ? IteratorClose(_iteratorRecord_, _status_).
2242122421
1. If _result_.[[Value]] is not ~empty~, set _V_ to _result_.[[Value]].

0 commit comments

Comments
 (0)