Skip to content

Conversation

mvano
Copy link
Contributor

@mvano mvano commented Jan 6, 2015

Issue #96

</li>
<li>Retrieve the <a>push registration</a> associated with the <a>webapp</a>.
</li>
<li>If there is an error, reject <var>promise</var> with a <code><a>DOMException</a></code>
whose name is "<code><a>AbortError</a></code>" and terminate these steps.
and terminate these steps.
Copy link
Member

Choose a reason for hiding this comment

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

What kind of error is an implementation meant to throw if it's not an AbortError? Specifying the kind of DOMException still seems valuable here, even if you keep it as generic as AbortError.

@beverloo
Copy link
Member

beverloo commented Jan 6, 2015

lgtm % comment

@mvano
Copy link
Contributor Author

mvano commented Jan 13, 2015

Thanks for taking a look guys. Let's just focus on making this thing nullable. The concepts of retrieving and the way to define errors should really be separate.

mvano added a commit that referenced this pull request Jan 14, 2015
Resolve getSubscription promise with null if not subscribed.
@mvano mvano merged commit 0fad026 into w3c:gh-pages Jan 14, 2015
@mvano mvano deleted the NullableRegistration branch January 14, 2015 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants