[w3c/ServiceWorker] Cast `resolveWith` argument to a Promise (#1097)

The non-normative Note that describes the `event.respondWith` algorithm
states:

> Developers can set the argument r with either a promise that resolves
> with a Response object or a Response object (which is automatically
> cast to a promise). [...]

Previously, the algorithm did not explicitly perform such type casting.

Insert an additional step to harmonize the algorithm and its
description.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1097

-- Commit Summary --

  * Cast `resolveWith` argument to a Promise

-- File Changes --

    M docs/index.bs (11)
    M docs/index.html (13)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1097.patch
https://github.com/w3c/ServiceWorker/pull/1097.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1097

Received on Thursday, 30 March 2017 17:12:13 UTC