| message_property.js |
---
description: Error constructor creates own message property
info: |
19.5.1.1 Error ( message )
...
4.
...
c. Let msgDesc be the PropertyDescriptor{[[Value]]: msg, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true}.
d. Let status be DefinePropertyOrThrow(O, "message", msgDesc).
es6id: 19.5.1.1
includes: [propertyHelper.js]
--- |
717 |
- |
| proto-from-ctor-realm.js |
---
esid: sec-error-message
es6id: 19.5.1.1
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
2. Let O be ? OrdinaryCreateFromConstructor(newTarget, "%ErrorPrototype%",
« [[ErrorData]] »).
[...]
9.1.14 GetPrototypeFromConstructor
[...]
3. Let proto be ? Get(constructor, "prototype").
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
features: [cross-realm, Reflect]
--- |
925 |
- |
| prototype |
|
|
- |
| S15.11.1.1_A1_T1.js |
---
info: |
If the argument "message" is not undefined, the message property of the newly constructed object is
set to ToString(message)
es5id: 15.11.1.1_A1_T1
description: Checking message property of different error objects
--- |
1838 |
- |
| S15.11.1.1_A2_T1.js |
---
info: |
The [[Prototype]] property of the newly constructed object is set to the original Error prototype
object, the one that is the initial value of Error.prototype (15.11.3.1)
es5id: 15.11.1.1_A2_T1
description: Checking prototype of the newly constructed Error object
--- |
808 |
- |
| S15.11.1.1_A3_T1.js |
---
info: The [[Class]] property of the newly constructed object is set to "Error"
es5id: 15.11.1.1_A3_T1
description: >
Checking Class of the newly constructed Error object using
toSting() function
--- |
802 |
- |
| S15.11.1_A1_T1.js |
---
info: |
The function call Error(...) is equivalent to the object creation expression new
Error(...) with the same arguments
es5id: 15.11.1_A1_T1
description: Checking constructor of the newly constructed Error object
--- |
793 |
- |
| S15.11.2.1_A1_T1.js |
---
info: |
If the argument "message" is not undefined, the message property of the newly constructed object is
set to ToString(message)
es5id: 15.11.2.1_A1_T1
description: Checking message property of different error objects
--- |
1866 |
- |
| S15.11.2.1_A2_T1.js |
---
info: |
The [[Prototype]] property of the newly constructed object is set to the original Error prototype
object, the one that is the initial value of Error.prototype (15.11.3.1)
es5id: 15.11.2.1_A2_T1
description: Checking prototype of the newly constructed Error object
--- |
786 |
- |
| S15.11.2.1_A3_T1.js |
---
info: The [[Class]] property of the newly constructed object is set to "Error"
es5id: 15.11.2.1_A3_T1
description: >
Checking Class of the newly constructed Error object using
toSting() function
--- |
736 |
- |
| S15.11.3_A1_T1.js |
---
info: |
The value of the internal [[Prototype]] property of the Error constructor
is the Function prototype object(15.3.4)
es5id: 15.11.3_A1_T1
description: >
Checking prototype of constructor of the newly constructed Error
object
--- |
1193 |
- |
| S15.11.3_A2_T1.js |
---
info: The length property value is 1
es5id: 15.11.3_A2_T1
description: Checking length property
--- |
876 |
- |