Re: [ServiceWorker] Response or Promise<Response> is invalid Web IDL (#724)

Is the reason the following?

> Each pair of flattened member types in a union type, T and U, must be distinguishable.
> Promise types do not appear in the above table, and as a consequence are not distinguishable with any other type.

It may not be a big deal as fetch() and cache.match() return a promise but still affect some of the existing implementations. Is there any reason Promise types can't be distinguishable within union's member types?

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

Received on Friday, 24 July 2015 15:19:04 UTC