browser.js |
|
0 |
capability-executor-called-twice.js |
---
es6id: 25.4.4.4
description: >
Throws a TypeError if capabilities executor already called with non-undefined values.
info: |
Promise.reject ( r )
...
3. Let promiseCapability be NewPromiseCapability(C).
4. ReturnIfAbrupt(promiseCapability).
...
25.4.1.5.1 GetCapabilitiesExecutor Functions
...
3. If promiseCapability.[[Resolve]] is not undefined, throw a TypeError exception.
4. If promiseCapability.[[Reject]] is not undefined, throw a TypeError exception.
5. Set promiseCapability.[[Resolve]] to resolve.
6. Set promiseCapability.[[Reject]] to reject.
...
--- |
2582 |
capability-executor-not-callable.js |
---
es6id: 25.4.4.4
description: >
Throws a TypeError if either resolve or reject capability is not callable.
info: |
Promise.reject ( r )
...
3. Let promiseCapability be NewPromiseCapability(C).
4. ReturnIfAbrupt(promiseCapability).
...
25.4.1.5 NewPromiseCapability ( C )
...
4. Let executor be a new built-in function object as defined in GetCapabilitiesExecutor Functions (25.4.1.5.1).
5. Set the [[Capability]] internal slot of executor to promiseCapability.
6. Let promise be Construct(C, «executor»).
7. ReturnIfAbrupt(promise).
8. If IsCallable(promiseCapability.[[Resolve]]) is false, throw a TypeError exception.
9. If IsCallable(promiseCapability.[[Reject]]) is false, throw a TypeError exception.
...
--- |
2756 |
capability-invocation-error.js |
---
description: Abrupt completion returned by "reject" capability
esid: sec-promise.reject
info: |
1. Let C be the this value.
[...]
3. Let promiseCapability be ? NewPromiseCapability(C).
4. Perform ? Call(promiseCapability.[[Reject]], undefined, « r »).
25.4.1.5 NewPromiseCapability
[...]
6. Let promise be Construct(C, «executor»).
7. ReturnIfAbrupt(promise).
--- |
817 |
capability-invocation.js |
---
description: Invocation of "reject" capability
esid: sec-promise.reject
info: |
1. Let C be the this value.
[...]
3. Let promiseCapability be ? NewPromiseCapability(C).
4. Perform ? Call(promiseCapability.[[Reject]], undefined, « r »).
[...]
25.4.1.5 NewPromiseCapability
[...]
6. Let promise be Construct(C, «executor»).
7. ReturnIfAbrupt(promise).
--- |
1109 |
ctx-ctor-throws.js |
---
description: >
`Promise.reject` invoked on a constructor value that throws an error
es6id: 25.4.4.4
info: |
1. Let C be the this value.
[...]
3. Let promiseCapability be NewPromiseCapability(C).
4. ReturnIfAbrupt(promiseCapability).
25.4.1.5 NewPromiseCapability
[...]
6. Let promise be Construct(C, «executor»).
7. ReturnIfAbrupt(promise).
--- |
702 |
ctx-ctor.js |
---
description: >
`Promise.reject` invoked on a constructor value
es6id: 25.4.4.5
info: |
1. Let C be the this value.
[...]
3. Let promiseCapability be NewPromiseCapability(C).
[...]
7. Return promiseCapability.[[Promise]].
features: [class]
--- |
828 |
ctx-non-ctor.js |
---
description: >
`Promise.reject` invoked on a non-constructor value
es6id: 25.4.4.4
info: |
[...]
3. Let promiseCapability be NewPromiseCapability(C).
4. ReturnIfAbrupt(promiseCapability).
--- |
449 |
ctx-non-object.js |
---
description: >
`Promise.resolve` invoked on a non-object value
es6id: 25.4.4.4
info: |
1. Let C be the this value.
2. If Type(C) is not Object, throw a TypeError exception.
features: [Symbol]
--- |
844 |
length.js |
---
es6id: 25.4.4.4
description: Promise.reject `length` property
info: |
ES6 Section 17:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this value
is equal to the largest number of named arguments shown in the subclause
headings for the function description, including optional parameters.
[...]
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
909 |
name.js |
---
es6id: 25.4.4.4
description: Promise.reject `name` property
info: |
ES6 Section 17:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value is a
String. Unless otherwise specified, this value is the name that is given to
the function in this specification.
[...]
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
892 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
Promise.reject does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, arrow-function]
--- |
878 |
prop-desc.js |
---
es6id: 25.4.4.4_A1.2_T1
author: Jordan Harband
description: Promise.reject property descriptor
info: |
ES6 Section 17
Every other data property described in clauses 18 through 26 and in Annex
B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
580 |
S25.4.4.4_A1.1_T1.js |
---
info: |
Promise.reject
es6id: S25.4.4.4_A1.1_T1
author: Sam Mikes
description: Promise.reject is a function
--- |
364 |
S25.4.4.4_A2.1_T1.js |
---
info: |
[...]
5. Let rejectResult be Call(promiseCapability.[[Reject]], undefined, «r»).
[...]
25.4.1.3.1 Promise Reject Functions
[...]
6. Return RejectPromise(promise, reason).
es6id: 25.4.4.4
author: Sam Mikes
description: Promise.reject creates a new settled promise
flags: [async]
--- |
762 |
S25.4.4.4_A3.1_T1.js |
---
info: |
Promise.reject
es6id: S25.4.4.4_A3.1_T1
author: Sam Mikes
description: Promise.reject throws TypeError for bad 'this'
--- |
375 |
shell.js |
|
0 |