Skip to content

Serialization also calls inherited toJSON #1732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6581,8 +6581,8 @@ <h3>Executing Script</h3>
<li><p>Return <a>success</a> with data <var>reference</var>.
</ol>

<dt>has an <a>own property</a> named "<code>toJSON</code>" that is
a <a>Function</a>
<dt>has an <a>own property</a> or <a>inherited property</a> named
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<dt>has an <a>own property</a> or <a>inherited property</a> named
<dt>has a property</a> named

Given that it doesn't matter if it's an own or inherited property we potentially could just use this term?

"<code>toJSON</code>" that is a <a>Function</a>
<dd>Return <a>success</a> with the value returned by
<a>Function.[[\Call]]</a>(<code>toJSON</code>) with <var>value</var>
as the this value.
Expand Down Expand Up @@ -10979,6 +10979,7 @@ <h2>Index</h2>
<!-- FunctionCreate --> <li><dfn><a href=https://tc39.github.io/ecma262/#sec-functioncreate>FunctionCreate</a></dfn>
<!-- Get --> <li><dfn><a href=https://tc39.github.io/ecma262/#sec-get-o-p>Get</a></dfn>
<!-- Global environment --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-10.2.3>Global environment</a></dfn>
<!-- Inherited property --> <li><dfn data-lt="inherited properties"><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.31>Inherited property</a></dfn>
<!-- IsCallable --> <li><dfn><a href=https://tc39.github.io/ecma262/#sec-iscallable>IsCallable</a></dfn>
<!-- Own property --> <li><dfn data-lt="own properties"><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.30>Own property</a></dfn>
<!-- Promise --> <li><dfn><a href=https://tc39.github.io/ecma262/#sec-promise-constructor>Promise</a></dfn>
Expand Down