Skip to content
Merged
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
25 changes: 14 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -10435,17 +10435,15 @@ interface <dfn interface>DOMStringList</dfn> {
<span>IsDataDescriptor</span>(<var>valueMessageDesc</var>) is false, and
? <span>ToString</span>(<var>valueMessageDesc</var>.[[Value]]) otherwise.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Error", [[Name]]: <var>name</var>,
[[Message]]: <var>message</var> }.</p></li>
<li><p>Let <var>stack</var> be an <span>implementation-defined</span> string that
represents <var>value</var>.[[Stack]]. <ref>JSERRORSTACKACCESSOR</ref>
<ref>JSERRORSTACKS</ref></p></li>
Comment thread
ljharb marked this conversation as resolved.

<li>
<p>User agents should attach a serialized representation of any interesting accompanying
data which are not yet specified, notably the <code data-x="">stack</code> property, to
<var>serialized</var>.</p>
Comment thread
ljharb marked this conversation as resolved.
<li><p>Set <var>serialized</var> to { [[Type]]: "Error", [[Name]]: <var>name</var>,
[[Message]]: <var>message</var>, [[Stack]]: <var>stack</var> }.</p></li>

<p class="note">See the <cite>Error Stacks</cite> proposal for in-progress work on specifying
this data. <ref>JSERRORSTACKS</ref></p>
</li>
<li><p>User agents should attach a serialized representation of any interesting accompanying
data which are not yet specified to <var>serialized</var>.</p></li>
</ol>
</li>

Expand Down Expand Up @@ -10897,7 +10895,7 @@ o.myself = o;</code></pre>
<li><p>Let <var>message</var> be <var>serialized</var>.[[Message]].</p></li>

<li><p>Set <var>value</var> to <span>OrdinaryObjectCreate</span>(<var>prototype</var>, «
[[ErrorData]] »).</p></li>
[[ErrorData]], [[Stack]] »).</p></li>

<li><p>Let <var>messageDesc</var> be <span>PropertyDescriptor</span> { [[Value]]:
<var>message</var>, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true
Expand All @@ -10907,6 +10905,8 @@ o.myself = o;</code></pre>
<span>OrdinaryDefineOwnProperty</span>(<var>value</var>, "<code data-x="">message</code>",
<var>messageDesc</var>).</p></li>

<li><p>Set <var>value</var>.[[Stack]] to <var>serialized</var>.[[Stack]].</p></li>

<li><p>Any interesting accompanying data attached to <var>serialized</var> should be
deserialized and attached to <var>value</var>.</p></li>
</ol>
Expand Down Expand Up @@ -157150,8 +157150,11 @@ INSERT INTERFACES HERE
<dt id="refsJPEG">[JPEG]</dt>
<dd><cite><a href="https://www.w3.org/Graphics/JPEG/jfif3.pdf">JPEG File Interchange Format</a></cite>, E. Hamilton.</dd>

<dt id="refsJSERRORSTACKACCESSOR">[JSERRORSTACKACCESSOR]</dt>
<dd><cite><a href="https://tc39.es/proposal-error-stack-accessor/">Error Stack Accessor</a></cite>. Ecma International.</dd>

<dt id="refsJSERRORSTACKS">[JSERRORSTACKS]</dt>
<dd>(Non-normative) <cite><a href="https://tc39.es/proposal-error-stacks/">Error Stacks</a></cite>. Ecma International.</dd>
<dd><cite><a href="https://tc39.es/proposal-error-stacks/">Error Stacks</a></cite>. Ecma International.</dd>

<dt id="refsJSDYNAMICCODEBRANDCHECKS">[JSDYNAMICCODEBRANDCHECKS]</dt>
<dd><cite><a href="https://tc39.es/proposal-dynamic-code-brand-checks/">Dynamic code brand checks</a></cite>. Ecma International.</dd>
Expand Down
Loading