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