Skip to content
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

Mark DOMException as serializable #732

Merged
merged 7 commits into from
Jul 3, 2019
Merged
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -13397,7 +13397,7 @@ Each {{DOMException}} object has an associated <dfn for="DOMException">name</dfn
The <dfn constructor for="DOMException"><code>DOMException(|message|, |name|)</code></dfn>
constructor, when invoked, must run these steps:

1. Set <b>this</b>'s [=DOMException/name=] to |name|.
1. Set <b>this</b>'s [=DOMExcep tion/name=] to |name|.
yutakahirano marked this conversation as resolved.
Show resolved Hide resolved
1. Set <b>this</b>'s [=DOMException/message=] to |message|.

The <dfn attribute for="DOMException"><code>name</code></dfn> attribute's getter must return this
Expand All @@ -13416,13 +13416,17 @@ Their [=serialization steps=], given <var>value</var> and <var>serialized</var>,
<ol>
yutakahirano marked this conversation as resolved.
Show resolved Hide resolved
<li>Set <var>serialized</var>.\[[Name]] to <var>value</var>'s [=DOMException/name=].</li>
<li>Set <var>serialized</var>.\[[Message]] to <var>value</var>'s [=DOMException/message=].</li>
<li>User agents attach should a serialized representation of any interesting accompanying data
which are not yet specified, notably the {{stack}} property, to <var>serialized</var>.</li>
</ol>

Their [=deserialization steps=], given <var>value</var> and <var>serialized</var>, are:

<ol>
<li><Set <var>value</var>'s [=DOMException/name=] to <var>serialized</var>.\[[Name]].</li>
<li><Set <var>value</var>'s [=DOMException/message=] to <var>serialized</var>.\[[Message]].</li>
<li>If any other data is attached to <var>serialized</var>, then deserialize and attach it to
<var>value</var>.</li>
</ol>

<h3 id="DOMTimeStamp" typedef oldids="common-DOMTimeStamp">DOMTimeStamp</h3>
Expand Down