Skip to content

Commit 573c619

Browse files
committed
use %ObjProto_valueOf%
1 parent 4b74851 commit 573c619

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

source

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,9 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
29892989
<dfn data-noexport="">@@toStringTag</dfn></li>
29902990
<li><dfn data-noexport="" data-x-href="https://tc39.github.io/ecma262/#sec-well-known-intrinsic-objects">Well-Known Intrinsic Objects</dfn>,
29912991
including <dfn data-noexport=""
2992-
data-x-href="https://tc39.github.io/ecma262/#sec-object.prototype.tostring">%ObjProto_toString%</dfn></li>
2992+
data-x-href="https://tc39.github.io/ecma262/#sec-object.prototype.tostring">%ObjProto_toString%</dfn>
2993+
and <dfn data-noexport=""
2994+
data-x-href="https://tc39.github.io/ecma262/#sec-object.prototype.valueof">%ObjProto_valueOf%</dfn></li>
29932995
<li>The <dfn data-noexport="" data-x="js-prod-FunctionBody" data-x-href="https://tc39.github.io/ecma262/#prod-FunctionBody"><i>FunctionBody</i></dfn> production</li>
29942996
<li>The <dfn data-noexport="" data-x="js-prod-Module" data-x-href="https://tc39.github.io/ecma262/#prod-Module"><i>Module</i></dfn> production</li>
29952997
<li>The <dfn data-noexport="" data-x="js-prod-Pattern" data-x-href="https://tc39.github.io/ecma262/#prod-Pattern"><i>Pattern</i></dfn> production</li>
@@ -79522,23 +79524,8 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
7952279524
[[Enumerable]]: false,
7952379525
[[Configurable]]: false }).</p></li>
7952479526

79525-
<li>
79526-
<p>Let <var>valueOfFunction</var> be a function object whose behavior is as
79527-
follows:</p>
79528-
79529-
<ol>
79530-
<li><p>Return ? <span>ToObject</span>(<b>this</b>).</p></li>
79531-
</ol>
79532-
79533-
<p>The value of the function object's "<code data-x="">length</code>" property is the Number
79534-
value 0.</p>
79535-
79536-
<p>The value of the function object’s "<code data-x="">name</code>" property is the String value
79537-
"<code data-x="">valueOf</code>".</p>
79538-
</li>
79539-
7954079527
<li><p>Perform ! <var>location</var>.[[DefineOwnProperty]]("<code data-x="">valueOf</code>", {
79541-
[[Value]]: <var>valueOfFunction</var>,
79528+
[[Value]]: <span>%ObjProto_valueOf%</span>,
7954279529
[[Writable]]: false,
7954379530
[[Enumerable]]: false,
7954479531
[[Configurable]]: false }).</p></li>

0 commit comments

Comments
 (0)