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

Use StructuredSerializeForStorage #99

Merged
merged 1 commit into from
May 14, 2017
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
5 changes: 3 additions & 2 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ these steps:
<code>TypeError</code> exception.

<li><p>Set <var>notification</var>'s <a for=notification>data</a> to
<span>StructuredSerialize</span>(<var>options</var>'s <code>data</code>). Rethrow any exceptions.
<a abstract-op>StructuredSerializeForStorage</a>(<var>options</var>'s <code>data</code>). Rethrow
any exceptions.

<li><p>Set <var>notification</var>'s <a for=notification>title</a>
to <var>options</var>'s <code>title</code>.
Expand Down Expand Up @@ -895,7 +896,7 @@ the <a>notification</a>'s <a for=notification>renotify preference flag</a>.
return the <a>notification</a>'s <a for=notification>require interaction preference flag</a>.

<p>The <dfn attribute for=Notification><code>data</code></dfn> attribute's getter must return
<span>StructuredDeserialize</span>(<a>notification</a>'s <a for=notification>data</a>,
<a abstract-op>StructuredDeserialize</a>(<a>notification</a>'s <a for=notification>data</a>,
<a>context object</a>'s <a>relevant Realm</a>). If this throws an exception, then return null.
<!-- Relies on SameObject becoming Cached as proposed -->

Expand Down