@@ -86,28 +86,26 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMA-262
86
86
text: Set; url: sec-set-objects
87
87
text: SharedArrayBuffer; url: sec-sharedarraybuffer-objects
88
88
text: %AsyncIteratorPrototype%; url: sec-asynciteratorprototype
89
- text: %ArrayPrototype %; url: sec-properties-of-the-array-prototype-object
90
- text: %ErrorPrototype %; url: sec-properties-of-the-error-prototype-object
91
- text: %FunctionPrototype %; url: sec-properties-of-the-function-prototype-object
89
+ text: %Array.prototype %; url: sec-properties-of-the-array-prototype-object
90
+ text: %Error.prototype %; url: sec-properties-of-the-error-prototype-object
91
+ text: %Function.prototype %; url: sec-properties-of-the-function-prototype-object
92
92
text: %IteratorPrototype%; url: sec-%iteratorprototype%-object
93
- text: %MapPrototype %; url: sec-properties-of-the-map-prototype-object
94
- text: %ObjectPrototype %; url: sec-properties-of-the-object-prototype-object
93
+ text: %Map.prototype %; url: sec-properties-of-the-map-prototype-object
94
+ text: %Object.prototype %; url: sec-properties-of-the-object-prototype-object
95
95
text: %Promise%; url: sec-promise-constructor
96
- text: %SetPrototype %; url: sec-properties-of-the-set-prototype-object
96
+ text: %Set.prototype %; url: sec-properties-of-the-set-prototype-object
97
97
type: exception; for: ECMAScript
98
98
text: Error; url: sec-error-objects
99
99
text: SyntaxError; url: sec-native-error-types-used-in-this-standard-syntaxerror
100
100
text: TypeError; url: sec-native-error-types-used-in-this-standard-typeerror
101
101
type: method; for: ECMAScript
102
102
text: JSON.stringify(); url: sec-json.stringify
103
- text: %ArrayProto_entries%; url: sec-array.prototype.entries
104
- text: %ArrayProto_forEach%; url: sec-array.prototype.foreach
105
- text: %ArrayProto_keys%; url: sec-array.prototype.keys
106
- text: %ArrayProto_values%; url: sec-array.prototype.values
107
- text: %ObjProto_toString%; url: sec-object.prototype.tostring
108
- text: %Promise_reject%; url: sec-promise.reject
109
- text: %Promise_resolve%; url: sec-promise.resolve
110
- text: %PromiseProto_then%; url: sec-promise.prototype.then
103
+ text: %Array.prototype.entries%; url: sec-array.prototype.entries
104
+ text: %Array.prototype.forEach%; url: sec-array.prototype.foreach
105
+ text: %Array.prototype.keys%; url: sec-array.prototype.keys
106
+ text: %Array.prototype.values%; url: sec-array.prototype.values
107
+ text: %Promise.reject%; url: sec-promise.reject
108
+ text: %Promise.prototype.then%; url: sec-promise.prototype.then
111
109
text: all(); for: Promise; url: #sec-promise.all
112
110
type: const; for: ECMAScript
113
111
url: sec-well-known-symbols
@@ -4772,7 +4770,7 @@ Of the extended attributes defined in this specification, only the [{{Exposed}}]
4772
4770
4773
4771
An ECMAScript implementation would then expose a global <code class="idl">VectorUtils</code>
4774
4772
data property which was a simple object (with prototype
4775
- {{%ObjectPrototype %}}) with enumerable data properties for each declared operation, and
4773
+ {{%Object.prototype %}}) with enumerable data properties for each declared operation, and
4776
4774
enumerable get-only accessors for each declared attribute:
4777
4775
4778
4776
<pre highlight="js">
@@ -6909,7 +6907,7 @@ string "<code>ObservableArray</code>".
6909
6907
there and in the [=observable array attribute/delete an indexed value=] algorithm.
6910
6908
6911
6909
Another thing to note about the above code example is how all of the ECMAScript array methods
6912
- from {{%ArrayPrototype %}} work on the observable array. Indeed, it fully behaves like an
6910
+ from {{%Array.prototype %}} work on the observable array. Indeed, it fully behaves like an
6913
6911
<code>Array</code> instance:
6914
6912
6915
6913
<pre highlight="js">
@@ -7191,7 +7189,7 @@ Unless otherwise specified, the \[[Extensible]] internal slot
7191
7189
of objects defined in this section has the value <emu-val>true</emu-val>.
7192
7190
7193
7191
Unless otherwise specified, the \[[Prototype]] internal slot
7194
- of objects defined in this section is {{%ObjectPrototype %}}.
7192
+ of objects defined in this section is {{%Object.prototype %}}.
7195
7193
7196
7194
Some objects described in this section are defined to have a <dfn id="dfn-class-string" export>class string</dfn>,
7197
7195
which is the string to include in the string returned from <code>Object.prototype.toString</code>.
@@ -7983,7 +7981,7 @@ up on the ECMAScript object are not necessarily the same as the object’s prope
7983
7981
to an ECMAScript Object value by
7984
7982
running the following algorithm (where |D| is the [=dictionary=]):
7985
7983
7986
- 1. Let |O| be [=!=] [$OrdinaryObjectCreate$]({{%ObjectPrototype %}}).
7984
+ 1. Let |O| be [=!=] [$OrdinaryObjectCreate$]({{%Object.prototype %}}).
7987
7985
1. Let |dictionaries| be a list consisting of |D| and all of |D|’s [=inherited dictionaries=],
7988
7986
in order from least to most derived.
7989
7987
1. For each dictionary |dictionary| in |dictionaries|, in order:
@@ -8277,7 +8275,7 @@ ECMAScript Object values.
8277
8275
[=converted to an ECMAScript value|converted=]
8278
8276
to an ECMAScript value as follows:
8279
8277
8280
- 1. Let |result| be [=!=] [$OrdinaryObjectCreate$]({{%ObjectPrototype %}}).
8278
+ 1. Let |result| be [=!=] [$OrdinaryObjectCreate$]({{%Object.prototype %}}).
8281
8279
1. [=map/For each=] |key| → |value| of |D|:
8282
8280
1. Let |esKey| be |key| [=converted to an ECMAScript value=].
8283
8281
1. Let |esValue| be |value| [=converted to an ECMAScript value=].
@@ -8454,7 +8452,7 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
8454
8452
|newCapability|).
8455
8453
8456
8454
Note: This algorithm will behave in a very similar way to the
8457
- {{%PromiseProto_then %|Promise.then()}} method.
8455
+ {{%Promise.prototype.then %|Promise.then()}} method.
8458
8456
In particular, if the steps return a value of type |U| or
8459
8457
<code><a interface>Promise</a><|U|></code>, this algorithm returns a
8460
8458
<code><a interface>Promise</a><|U|></code> as well.
@@ -11186,7 +11184,7 @@ default interfaces do not have such steps.
11186
11184
1. Assert: |O| is an object that [=implements=] |I|.
11187
11185
1. Assert: |O|.\[[Realm]] is |realm|.
11188
11186
1. Return |O|.
11189
- 1. Let |constructorProto| be |realm|.\[[Intrinsics]].[[{{%FunctionPrototype %}}]].
11187
+ 1. Let |constructorProto| be |realm|.\[[Intrinsics]].[[{{%Function.prototype %}}]].
11190
11188
1. If |I| inherits from some other interface |P|,
11191
11189
then set |constructorProto| to the [=interface object=] of |P| in |realm|.
11192
11190
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « \[[Unforgeables]] »,
@@ -11287,8 +11285,8 @@ with the [{{LegacyNoInterfaceObject}}] [=extended attribute=].
11287
11285
then set |proto| to the [=interface prototype object=] in |realm|
11288
11286
of that [=inherited interface=].
11289
11287
1. Otherwise, if |interface| is the {{DOMException}} [=interface=],
11290
- then set |proto| to |realm|.\[[Intrinsics]].[[{{%ErrorPrototype %}}]].
11291
- 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%ObjectPrototype %}}]].
11288
+ then set |proto| to |realm|.\[[Intrinsics]].[[{{%Error.prototype %}}]].
11289
+ 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%Object.prototype %}}]].
11292
11290
1. Assert: <a abstract-op>Type</a>(|proto|) is Object.
11293
11291
1. Let |interfaceProtoObj| be [=!=] [$OrdinaryObjectCreate$](|proto|).
11294
11292
1. If |interface| has any [=member=] declared with the [{{Unscopable}}] [=extended attribute=],
@@ -11387,7 +11385,7 @@ for that interface on which named properties are exposed.
11387
11385
1. Let |proto| be null.
11388
11386
1. If |interface| is declared to inherit from another interface,
11389
11387
then set |proto| to the [=interface prototype object=] in |realm| for the [=inherited interface=].
11390
- 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%ObjectPrototype %}}]].
11388
+ 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%Object.prototype %}}]].
11391
11389
1. Let |obj| be [=!=] [$MakeBasicObject$](« \[[Prototype]], \[[Extensible]] »).
11392
11390
1. Set |obj|.\[[GetOwnProperty]] as specified in [[#named-properties-object-getownproperty]].
11393
11391
1. Set |obj|.\[[DefineOwnProperty]] as specified in [[#named-properties-object-defineownproperty]].
@@ -11602,7 +11600,7 @@ in which case they are exposed on every object that [=implements=] the interface
11602
11600
And then, if <a lt="an exception was thrown">an exception |E| was thrown</a>:
11603
11601
11604
11602
1. If |attribute|'s type is a [=promise type=], then return
11605
- [=!=] <a abstract-op>Call</a>({{%Promise_reject %}}, {{%Promise%}}, «|E|»).
11603
+ [=!=] <a abstract-op>Call</a>({{%Promise.reject %}}, {{%Promise%}}, «|E|»).
11606
11604
1. Otherwise, end these steps and allow the exception to propagate.
11607
11605
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
11608
11606
1. Let |name| be the string "<code>get </code>" prepended to |attribute|'s [=identifier=].
@@ -11806,7 +11804,7 @@ in which case they are exposed on every object that [=implements=] the interface
11806
11804
11807
11805
1. If |op| has a [=return type=]
11808
11806
that is a [=promise type=], then return
11809
- [=!=] <a abstract-op>Call</a>({{%Promise_reject %}}, {{%Promise%}}, «|E|»).
11807
+ [=!=] <a abstract-op>Call</a>({{%Promise.reject %}}, {{%Promise%}}, «|E|»).
11810
11808
1. Otherwise, end these steps and allow the exception to propagate.
11811
11809
1. Let |F| be [=!=] <a abstract-op>CreateBuiltinFunction</a>(|steps|, « », |realm|).
11812
11810
1. Perform [=!=] <a abstract-op>SetFunctionName</a>(|F|, |id|).
@@ -11854,7 +11852,7 @@ A [=regular operation=] that does not [=have default method steps=] must not be
11854
11852
for [=interface=] |I|.
11855
11853
1. Invoke [=collect attribute values of an inheritance stack=] given [=this=], |stack|, and
11856
11854
|map|.
11857
- 1. Let |result| be [=!=] [$OrdinaryObjectCreate$]({{%ObjectPrototype %}}).
11855
+ 1. Let |result| be [=!=] [$OrdinaryObjectCreate$]({{%Object.prototype %}}).
11858
11856
1. [=map/For each=] |key| → |value| of |map|,
11859
11857
1. Let |k| be |key| [=converted to an ECMAScript value=].
11860
11858
1. Let |v| be |value| [=converted to an ECMAScript value=].
@@ -12154,16 +12152,16 @@ property is the String value "<code>forEach</code>".
12154
12152
12155
12153
1. If |definition| has an [=indexed property getter=], then:
12156
12154
1. Perform [=!=] [$CreateMethodProperty$](|target|, {{@@iterator}},
12157
- {{%ArrayProto_values %}}).
12155
+ {{%Array.prototype.values %}}).
12158
12156
1. If |definition| has a [=value iterator=], then:
12159
12157
1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>entries</code>",
12160
- {{%ArrayProto_entries %}}).
12158
+ {{%Array.prototype.entries %}}).
12161
12159
1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>keys</code>",
12162
- {{%ArrayProto_keys %}}).
12160
+ {{%Array.prototype.keys %}}).
12163
12161
1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>values</code>",
12164
- {{%ArrayProto_values %}}).
12162
+ {{%Array.prototype.values %}}).
12165
12163
1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>forEach</code>",
12166
- {{%ArrayProto_forEach %}}).
12164
+ {{%Array.prototype.forEach %}}).
12167
12165
1. Otherwise, if |definition| has a [=pair iterator=], then:
12168
12166
1. Define the {{@@iterator}} and <code class="idl">entries</code> methods:
12169
12167
1. Let |steps| be the following series of steps:
@@ -13918,7 +13916,7 @@ the special value “missing”, which represents a missing optional argument.
13918
13916
1. If |completion| is a normal completion, return |completion|.
13919
13917
1. If |completion| is an [=abrupt completion=] and the operation has a [=return type=]
13920
13918
that is <em>not</em> a [=promise type=], return |completion|.
13921
- 1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise_reject %}},
13919
+ 1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise.reject %}},
13922
13920
{{%Promise%}}, «|completion|.\[[Value]]»).
13923
13921
1. Return the result of [=converted to an IDL value|converting=]
13924
13922
|rejectedPromise| to the operation's return type.
@@ -14007,7 +14005,7 @@ described in the previous section).
14007
14005
1. If |completion| is a normal completion, return |completion|.
14008
14006
1. If |completion| is an [=abrupt completion=] and the callback function has a
14009
14007
[=return type=] that is <em>not</em> a [=promise type=], return |completion|.
14010
- 1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise_reject %}},
14008
+ 1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise.reject %}},
14011
14009
{{%Promise%}}, «|completion|.\[[Value]]»).
14012
14010
1. Return the result of [=converted to an IDL value|converting=]
14013
14011
|rejectedPromise| to the callback function's return type.
@@ -14067,7 +14065,7 @@ The characteristics of a namespace object are described in [[#namespace-object]]
14067
14065
The namespace object for a given [=namespace=] |namespace| and [=Realm=] |realm|
14068
14066
is <dfn lt="create a namespace object">created</dfn> as follows:
14069
14067
14070
- 1. Let |namespaceObject| be [=!=] [$OrdinaryObjectCreate$](|realm|.\[[Intrinsics]].[[{{%ObjectPrototype %}}]]).
14068
+ 1. Let |namespaceObject| be [=!=] [$OrdinaryObjectCreate$](|realm|.\[[Intrinsics]].[[{{%Object.prototype %}}]]).
14071
14069
1. [=Define the regular attributes=] of |namespace| on |namespaceObject| given |realm|.
14072
14070
1. [=Define the regular operations=] of |namespace| on |namespaceObject| given |realm|.
14073
14071
1. For each [=exposed=] [=interface=] |interface| which has the [{{LegacyNamespace}}] extended
@@ -14085,7 +14083,7 @@ The characteristics of a namespace object are described in [[#namespace-object]]
14085
14083
<h4 id="es-DOMException-specialness" oldids="es-DOMException-constructor-object, es-DOMException-prototype-object">{{DOMException}} custom bindings</h4>
14086
14084
14087
14085
In the ECMAScript binding, the [=interface prototype object=] for {{DOMException}}
14088
- has its \[[Prototype]] [=internal slot=] set to the intrinsic object {{%ErrorPrototype %}},
14086
+ has its \[[Prototype]] [=internal slot=] set to the intrinsic object {{%Error.prototype %}},
14089
14087
as defined in the [=create an interface prototype object=] abstract operation.
14090
14088
14091
14089
Additionally, if an implementation gives native {{ECMAScript/Error}} objects special powers or
0 commit comments