mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
fix another test now that we don't access the IteratorResult value
This commit is contained in:
parent
fc55660965
commit
71794b1388
@ -13,8 +13,15 @@ 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 innerValue be ? IteratorStepValue(iteratorRecord).
|
1. Let iteratorResult be ? IteratorStep(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]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -39,7 +46,8 @@ let iterable = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let iterator = Iterator.concat(iterable);
|
let iterator = Iterator.concat(iterable);
|
||||||
|
let iteratorResult = iterator.next();
|
||||||
|
|
||||||
assert.throws(Test262Error, function() {
|
assert.throws(Test262Error, function() {
|
||||||
iterator.next();
|
iteratorResult.value;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user