Skip to content

Commit b1078ae

Browse files
authored
Editorial: use dotted JavaScript intrinsics form
Follows tc39/ecma262#1376, and prevents problems in the future when the non-dotted forms are deleted.
1 parent 6b0b005 commit b1078ae

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

source

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,18 +2745,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
27452745
<dfn>@@toPrimitive</dfn>, and
27462746
<dfn>@@toStringTag</dfn></li>
27472747
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-well-known-intrinsic-objects">Well-Known Intrinsic Objects</dfn>, including
2748-
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-array-prototype-object">%ArrayPrototype%</dfn>,
2749-
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-error-prototype-object">%ErrorPrototype%</dfn>,
2750-
<dfn>%EvalErrorPrototype%</dfn>,
2751-
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-function-prototype-object">%FunctionPrototype%</dfn>,
2752-
<dfn data-x-href="https://tc39.es/ecma262/#sec-json.parse">%JSONParse%</dfn>,
2753-
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%ObjectPrototype%</dfn>,
2754-
<dfn data-x-href="https://tc39.es/ecma262/#sec-object.prototype.valueof">%ObjProto_valueOf%</dfn>,
2755-
<dfn>%RangeErrorPrototype%</dfn>,
2756-
<dfn>%ReferenceErrorPrototype%</dfn>,
2757-
<dfn>%SyntaxErrorPrototype%</dfn>,
2758-
<dfn>%TypeErrorPrototype%</dfn>, and
2759-
<dfn>%URIErrorPrototype%</dfn></li>
2748+
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-array-prototype-object">%Array.prototype%</dfn>,
2749+
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-error-prototype-object">%Error.prototype%</dfn>,
2750+
<dfn>%EvalError.prototype%</dfn>,
2751+
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-function-prototype-object">%Function.prototype%</dfn>,
2752+
<dfn data-x-href="https://tc39.es/ecma262/#sec-json.parse">%JSON.parse%</dfn>,
2753+
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%Object.prototype%</dfn>,
2754+
<dfn data-x-href="https://tc39.es/ecma262/#sec-object.prototype.valueof">%Object.prototype.valueOf%</dfn>,
2755+
<dfn>%RangeError.prototype%</dfn>,
2756+
<dfn>%ReferenceError.prototype%</dfn>,
2757+
<dfn>%SyntaxError.prototype%</dfn>,
2758+
<dfn>%TypeError.prototype%</dfn>, and
2759+
<dfn>%URIError.prototype%</dfn></li>
27602760

27612761
<li>The <dfn data-x="js-prod-FunctionBody" data-x-href="https://tc39.es/ecma262/#prod-FunctionBody"><i>FunctionBody</i></dfn> production</li>
27622762
<li>The <dfn data-x="js-prod-Module" data-x-href="https://tc39.es/ecma262/#prod-Module"><i>Module</i></dfn> production</li>
@@ -8136,7 +8136,7 @@ interface <dfn>DOMStringList</dfn> {
81368136

81378137
<li>
81388138
<p>Otherwise, if <var>value</var> is an exotic object and <var>value</var> is not the
8139-
<span>%ObjectPrototype%</span> intrinsic object associated with any <span>JavaScript
8139+
<span>%Object.prototype%</span> intrinsic object associated with any <span>JavaScript
81408140
realm</span>, then throw a <span>"<code>DataCloneError</code>"</span>
81418141
<code>DOMException</code>.</p>
81428142

@@ -8153,7 +8153,7 @@ interface <dfn>DOMStringList</dfn> {
81538153
<li><p>Set <var>deep</var> to true.</p></li>
81548154
</ol>
81558155

8156-
<p class="note"><span>%ObjectPrototype%</span> will end up being handled via this step and
8156+
<p class="note"><span>%Object.prototype%</span> will end up being handled via this step and
81578157
subsequent steps. The end result is that its exoticness is ignored, and after deserialization
81588158
the result will be an empty object (not an <span>immutable prototype exotic object</span>).
81598159
</li>
@@ -8451,7 +8451,7 @@ o.myself = o;</code></pre>
84518451

84528452
<ol>
84538453
<li><p>Let <var>outputProto</var> be
8454-
<var>targetRealm</var>.[[Intrinsics]].[[<span>%ArrayPrototype%</span>]].</p></li>
8454+
<var>targetRealm</var>.[[Intrinsics]].[[<span>%Array.prototype%</span>]].</p></li>
84558455

84568456
<li><p>Set <var>value</var> to ! <span>ArrayCreate</span>(<var>serialized</var>.[[Length]],
84578457
<var>outputProto</var>).</p></li>
@@ -8474,25 +8474,25 @@ o.myself = o;</code></pre>
84748474
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Error", then:</p>
84758475

84768476
<ol>
8477-
<li><p>Let <var>prototype</var> be <span>%ErrorPrototype%</span>.</p></li>
8477+
<li><p>Let <var>prototype</var> be <span>%Error.prototype%</span>.</p></li>
84788478

84798479
<li><p>If <var>serialized</var>.[[Name]] is "EvalError", then set <var>prototype</var> to
8480-
<span>%EvalErrorPrototype%</span>.</p></li>
8480+
<span>%EvalError.prototype%</span>.</p></li>
84818481

84828482
<li><p>If <var>serialized</var>.[[Name]] is "RangeError", then set <var>prototype</var>
8483-
to <span>%RangeErrorPrototype%</span>.</p></li>
8483+
to <span>%RangeError.prototype%</span>.</p></li>
84848484

84858485
<li><p>If <var>serialized</var>.[[Name]] is "ReferenceError", then set
8486-
<var>prototype</var> to <span>%ReferenceErrorPrototype%</span>.</p></li>
8486+
<var>prototype</var> to <span>%ReferenceError.prototype%</span>.</p></li>
84878487

84888488
<li><p>If <var>serialized</var>.[[Name]] is "SyntaxError", then set <var>prototype</var>
8489-
to <span>%SyntaxErrorPrototype%</span>.</p></li>
8489+
to <span>%SyntaxError.prototype%</span>.</p></li>
84908490

84918491
<li><p>If <var>serialized</var>.[[Name]] is "TypeError", then set <var>prototype</var> to
8492-
<span>%TypeErrorPrototype%</span>.</p></li>
8492+
<span>%TypeError.prototype%</span>.</p></li>
84938493

84948494
<li><p>If <var>serialized</var>.[[Name]] is "URIError", then set <var>prototype</var> to
8495-
<span>%URIErrorPrototype%</span>.</p></li>
8495+
<span>%URIError.prototype%</span>.</p></li>
84968496

84978497
<li><p>Let <var>message</var> be <var>serialized</var>.[[Message]].</p></li>
84988498

@@ -80678,7 +80678,7 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
8067880678

8067980679
<li><p>Let <var>valueOf</var> be <var>location</var>'s <span
8068080680
data-x="concept-relevant-realm">relevant
80681-
Realm</span>.[[Intrinsics]].[[<span>%ObjProto_valueOf%</span>]].</p></li>
80681+
Realm</span>.[[Intrinsics]].[[<span>%Object.prototype.valueOf%</span>]].</p></li>
8068280682

8068380683
<li><p>Perform ! <var>location</var>.[[DefineOwnProperty]]("<code data-x="">valueOf</code>", {
8068480684
[[Value]]: <var>valueOf</var>,
@@ -90830,7 +90830,7 @@ typedef <span>OnBeforeUnloadEventHandlerNonNull</span>? <dfn>OnBeforeUnloadEvent
9083090830
<dl>
9083190831
<dt><var>functionPrototype</var></dt>
9083290832

90833-
<dd><span>%FunctionPrototype%</span></dd>
90833+
<dd><span>%Function.prototype%</span></dd>
9083490834

9083590835
<dt><var>sourceText</var></dt>
9083690836

0 commit comments

Comments
 (0)