browser.js |
|
0 |
is-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
The SuppressedError constructor implements [[Construct]]
info: |
IsConstructor ( argument )
The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
It determines if argument is a function object with a [[Construct]] internal method.
It performs the following steps when called:
If Type(argument) is not Object, return false.
If argument has a [[Construct]] internal method, return true.
Return false.
includes: [isConstructor.js]
features: [Reflect.construct, explicit-resource-management]
--- |
1184 |
length.js |
---
esid: sec-properties-of-the-suppressederror-constructors
description: SuppressedError.length property descriptor
info: |
SuppressedError ( error, suppressed, message )
17 ECMAScript Standard Built-in Objects
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. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in
function object has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [explicit-resource-management]
--- |
1471 |
message-undefined-no-prop.js |
---
esid: sec-suppressederror-constructor
description: >
If message is undefined, no property will be set to the new instance
info: |
SuppressedError ( error, suppressed, message )
...
5. If message is not undefined, then
a. Let msg be ? ToString(message).
b. Perform ! CreateMethodProperty(O, "message", msg).
6. Return O.
features: [explicit-resource-management]
--- |
1134 |
name.js |
---
esid: sec-properties-of-the-suppressederror-constructor
description: SuppressedError.name property descriptor
info: |
Properties of the SuppressedError Constructor
- has a name property whose value is the String value "SuppressedError".
17 ECMAScript Standard Built-in Objects
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. For functions that
are specified as properties of objects, the name value is the
property name string used to access the function. [...]
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]
features: [explicit-resource-management]
--- |
1529 |
prop-desc.js |
---
esid: sec-suppressederror-objects
description: >
Property descriptor of SuppressedError
info: |
SuppressedError Objects
ECMAScript Standard Built-in Objects:
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]
features: [explicit-resource-management]
--- |
1045 |
proto-from-ctor-realm.js |
---
esid: sec-suppressederror-constructor
description: Default [[Prototype]] value derived from realm of the NewTarget.
info: |
SuppressedError ( error, suppressed, message )
1. If NewTarget is undefined, let newTarget be the active function object, else let newTarget be NewTarget.
2. Let O be ? OrdinaryCreateFromConstructor(newTarget, "%SuppressedError.prototype%", « [[ErrorData]] »).
...
6. Return O.
OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
3. Let proto be ? Get(constructor, 'prototype').
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Set proto to realm's intrinsic object named intrinsicDefaultProto.
5. Return proto.
features: [explicit-resource-management, cross-realm, Reflect, Symbol]
--- |
2787 |
proto.js |
---
description: The prototype of SuppressedError constructor is Error
esid: sec-properties-of-the-suppressederror-constructors
info: |
Properties of the SuppressedError Constructor
- has a [[Prototype]] internal slot whose value is the intrinsic object %Error%.
features: [explicit-resource-management]
--- |
836 |
prototype |
|
|
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |