mirror of
https://github.com/tc39/test262.git
synced 2025-09-23 18:18:37 +02:00
Revert "fix another test now that we don't access the IteratorResult value"
This reverts commit 71794b138844536a36b341700f88ee91c5754431. Follow up from #4523, missed reverting this commit. Closes: #4581
This commit is contained in:
parent
55e8077819
commit
35b3fc74ab
@ -13,14 +13,7 @@ info: |
|
|||||||
a. For each Record iterable of iterables, do
|
a. For each Record iterable of iterables, do
|
||||||
...
|
...
|
||||||
v. Repeat, while innerAlive is true,
|
v. Repeat, while innerAlive is true,
|
||||||
1. Let iteratorResult be ? IteratorStep(iteratorRecord).
|
1. Let innerValue be ? IteratorStepValue(iteratorRecord).
|
||||||
2. If iteratorResult is done, then
|
|
||||||
a. Perform ? IteratorValue(iteratorResult).
|
|
||||||
b. Set innerAlive to false.
|
|
||||||
3. Else,
|
|
||||||
a. Let completion be Completion(GeneratorYield(iteratorResult)).
|
|
||||||
b. If completion is an abrupt completion, then
|
|
||||||
i. Return ? IteratorClose(iteratorRecord, completion).
|
|
||||||
...
|
...
|
||||||
features: [iterator-sequencing]
|
features: [iterator-sequencing]
|
||||||
---*/
|
---*/
|
||||||
@ -46,8 +39,7 @@ let iterable = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let iterator = Iterator.concat(iterable);
|
let iterator = Iterator.concat(iterable);
|
||||||
let iteratorResult = iterator.next();
|
|
||||||
|
|
||||||
assert.throws(Test262Error, function() {
|
assert.throws(Test262Error, function() {
|
||||||
iteratorResult.value;
|
iterator.next();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user