mirror of https://github.com/tc39/test262.git
Add Symbol.iterator features flags to test generation files
This commit is contained in:
parent
358a295db0
commit
cf68ab3e5e
|
@ -43,7 +43,7 @@ YieldExpression: yield * AssignmentExpression
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [async-iteration, Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, async-iteration, Symbol.asyncIterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -26,7 +26,7 @@ info: |
|
|||
2. Let func be ? GetV(V, P).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
2. Let func be ? GetV(V, P).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
6. Let iterator be ? Call(method, obj).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
7. If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
2. Let func be ? GetV(V, P).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
2. Let func be ? GetV(V, P).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -31,6 +31,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -31,6 +31,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -31,6 +31,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -30,7 +30,7 @@ info: |
|
|||
4. If IsCallable(func) is false, throw a TypeError exception.
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
ii. Let syncIterator be ? Call(syncMethod, obj).
|
||||
...
|
||||
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
...
|
||||
v. Let done be ? IteratorComplete(innerResult).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
vi. If done is true, then
|
||||
1. Return ? IteratorValue(innerResult).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ info: |
|
|||
a. Return FulfillPromise(promise, resolution).
|
||||
8. Let then be Get(resolution, "then").
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
ii. Let innerResult be ? Invoke(iterator, "next",
|
||||
« received.[[Value]] »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ info: |
|
|||
12. Perform EnqueueJob("PromiseJobs", PromiseResolveThenableJob, « promise,
|
||||
resolution, thenAction »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
11. If IsCallable(thenAction) is false, then
|
||||
a. Return FulfillPromise(promise, resolution).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ info: |
|
|||
12. Perform EnqueueJob("PromiseJobs", PromiseResolveThenableJob, « promise,
|
||||
resolution, thenAction »).
|
||||
...
|
||||
features: [Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, Symbol.asyncIterator]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ info: |
|
|||
1. Return ! CreateIterResultObject(value, F.[[Done]]).
|
||||
|
||||
flags: [async]
|
||||
features: [async-iteration, Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, async-iteration, Symbol.asyncIterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -45,7 +45,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [async-iteration, Symbol.asyncIterator]
|
||||
features: [Symbol.iterator, async-iteration, Symbol.asyncIterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -43,7 +43,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
features: [Symbol.iterator, async-iteration]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||
c. ReturnIfAbrupt(next).
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -19,6 +19,7 @@ info: |
|
|||
ii. If v is an abrupt completion, set iteratorRecord.[[done]] to
|
||||
true.
|
||||
iii. ReturnIfAbrupt(v).
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||
c. ReturnIfAbrupt(next).
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -19,6 +19,7 @@ info: |
|
|||
ii. If v is an abrupt completion, set iteratorRecord.[[done]] to
|
||||
true.
|
||||
iii. ReturnIfAbrupt(v).
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
Loading…
Reference in New Issue