Re: [ServiceWorker] Use of Upon fulfillment/rejection in CacheStorage.match is incorrect (#627)

'For each' just builds the promise chain. And when one of the fulfillment handlers in the chain returns a promise which eventually resolves with a non-undefined value (i.e. a matched Response object), it makes all the following fulfillment handlers return the same value till the last one. So I think the first matched response will be the final value for the returned promise. Am I missing something?

> You also don't need a rejection handler that throws its argument. That's the default.

Yes. It's removed: 37064b621ff13da9c5f20b7cc0f3717dfb8a70a4.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/627#issuecomment-75679811

Received on Tuesday, 24 February 2015 01:14:23 UTC