Skip to content

Commit

Permalink
Editorial: use dotted JavaScript intrinsics form
Browse files Browse the repository at this point in the history
Follows tc39/ecma262#1376, and prevents problems
in the future when the non-dotted forms are deleted.
  • Loading branch information
ljharb authored and mfreed7 committed Sep 11, 2020
1 parent 2f157ec commit 514545d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2745,18 +2745,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<dfn>@@toPrimitive</dfn>, and
<dfn>@@toStringTag</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-well-known-intrinsic-objects">Well-Known Intrinsic Objects</dfn>, including
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-array-prototype-object">%ArrayPrototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-error-prototype-object">%ErrorPrototype%</dfn>,
<dfn>%EvalErrorPrototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-function-prototype-object">%FunctionPrototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-json.parse">%JSONParse%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%ObjectPrototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-object.prototype.valueof">%ObjProto_valueOf%</dfn>,
<dfn>%RangeErrorPrototype%</dfn>,
<dfn>%ReferenceErrorPrototype%</dfn>,
<dfn>%SyntaxErrorPrototype%</dfn>,
<dfn>%TypeErrorPrototype%</dfn>, and
<dfn>%URIErrorPrototype%</dfn></li>
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-array-prototype-object">%Array.prototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-error-prototype-object">%Error.prototype%</dfn>,
<dfn>%EvalError.prototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-function-prototype-object">%Function.prototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-json.parse">%JSON.parse%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%Object.prototype%</dfn>,
<dfn data-x-href="https://tc39.es/ecma262/#sec-object.prototype.valueof">%Object.prototype.valueOf%</dfn>,
<dfn>%RangeError.prototype%</dfn>,
<dfn>%ReferenceError.prototype%</dfn>,
<dfn>%SyntaxError.prototype%</dfn>,
<dfn>%TypeError.prototype%</dfn>, and
<dfn>%URIError.prototype%</dfn></li>

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

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

Expand All @@ -8158,7 +8158,7 @@ interface <dfn>DOMStringList</dfn> {
<li><p>Set <var>deep</var> to true.</p></li>
</ol>

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

<ol>
<li><p>Let <var>outputProto</var> be
<var>targetRealm</var>.[[Intrinsics]].[[<span>%ArrayPrototype%</span>]].</p></li>
<var>targetRealm</var>.[[Intrinsics]].[[<span>%Array.prototype%</span>]].</p></li>

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

<ol>
<li><p>Let <var>prototype</var> be <span>%ErrorPrototype%</span>.</p></li>
<li><p>Let <var>prototype</var> be <span>%Error.prototype%</span>.</p></li>

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

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

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

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

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

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

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

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

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

<li><p>Perform ! <var>location</var>.[[DefineOwnProperty]]("<code data-x="">valueOf</code>", {
[[Value]]: <var>valueOf</var>,
Expand Down Expand Up @@ -90859,7 +90859,7 @@ typedef <span>OnBeforeUnloadEventHandlerNonNull</span>? <dfn>OnBeforeUnloadEvent
<dl>
<dt><var>functionPrototype</var></dt>

<dd><span>%FunctionPrototype%</span></dd>
<dd><span>%Function.prototype%</span></dd>

<dt><var>sourceText</var></dt>

Expand Down

0 comments on commit 514545d

Please sign in to comment.