mirror of https://github.com/tc39/test262.git
Promise.any: feature flags
This commit is contained in:
parent
5d3eafc547
commit
1c748507f2
|
@ -17,7 +17,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any, Symbol.species]
|
||||
features: [Promise.any, Symbol.species, class, class-static-method, computed-property-names, Symbol, arrow-function]
|
||||
---*/
|
||||
|
||||
class C extends Promise {
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any, Symbol.species]
|
||||
features: [Promise.any, Symbol.species, Symbol, arrow-function]
|
||||
---*/
|
||||
|
||||
Object.defineProperty(Promise, Symbol.species, {
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
7. If ! IsCallable(promiseResolve) is false, throw a TypeError exception.
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
Promise.resolve = null;
|
||||
|
|
|
@ -15,7 +15,7 @@ info: |
|
|||
i. Let nextPromise be ? Call(promiseResolve, constructor, « nextValue »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, class, arrow-function]
|
||||
---*/
|
||||
class Custom extends Promise {}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ info: |
|
|||
i. Let nextPromise be ? Call(promiseResolve, constructor, « nextValue »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let values = [1,1,1];
|
||||
|
|
|
@ -15,7 +15,7 @@ info: |
|
|||
i. Let nextPromise be ? Call(promiseResolve, constructor, « nextValue »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, class, arrow-function]
|
||||
---*/
|
||||
class Custom extends Promise {}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ info: |
|
|||
i. Let nextPromise be ? Call(promiseResolve, constructor, « nextValue »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let values = [1, 2, 3];
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
r. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], rejectElement »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let boundPromiseResolve = Promise.resolve.bind(Promise);
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
r. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], rejectElement »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let promises = [
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
r. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], rejectElement »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let promise = new Promise(() => {});
|
||||
|
|
|
@ -25,7 +25,7 @@ info: |
|
|||
...
|
||||
|
||||
flags: [async]
|
||||
features: [AggregateError, Promise.any]
|
||||
features: [AggregateError, Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
Promise.any([])
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
3. Return ThrowCompletion(error).
|
||||
...
|
||||
|
||||
features: [AggregateError, Promise.any]
|
||||
features: [AggregateError, Promise.any, arrow-function]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
...
|
||||
Let iterator be ? Call(method, obj).
|
||||
...
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, Symbol, Symbol.iterator, arrow-function]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
|||
Let iterator be ? Call(method, obj).
|
||||
If Type(iterator) is not Object, throw a TypeError exception.
|
||||
...
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol, Symbol.iterator]
|
||||
features: [Promise.any, Symbol, Symbol.iterator, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
Call ( F, V [ , argumentsList ] )
|
||||
|
||||
2. If IsCallable(F) is false, throw a TypeError exception.
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, Symbol, computed-property-names]
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
c. ReturnIfAbrupt(next).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, computed-property-names, Symbol, arrow-function]
|
||||
---*/
|
||||
|
||||
let returnCount = 0;
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
c. ReturnIfAbrupt(next).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any, Symbol.iterator]
|
||||
features: [Promise.any, Symbol.iterator, computed-property-names, Symbol, arrow-function]
|
||||
---*/
|
||||
|
||||
let poisonedDone = {};
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-promise.any
|
|||
description: >
|
||||
Promise.any rejection reasons from various rejections are all present
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let rejections = [
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
|
||||
|
||||
flags: [async]
|
||||
features: [AggregateError, Promise.any]
|
||||
features: [AggregateError, Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
var rejection = {};
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
r. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], rejectElement »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
var resolver = {
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
r. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], rejectElement »).
|
||||
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
var resolver = {
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-promise.any
|
|||
description: >
|
||||
Promise.any resolves with the first item that does not reject.
|
||||
flags: [async]
|
||||
features: [Promise.any]
|
||||
features: [Promise.any, arrow-function]
|
||||
---*/
|
||||
|
||||
let fulfillables = [
|
||||
|
|
Loading…
Reference in New Issue