Re: [heycam/webidl] Promise handling algorithms are not very clear about what happens if type conversion fails (#782)

> How does `respondWith()` work in Gecko? Is there a manual type check?

Yes.  See https://searchfox.org/mozilla-central/rev/7088fc958db5935eba24b413b1f16d6ab7bd13ea/dom/serviceworkers/ServiceWorkerEvents.cpp#576,588-591,595-597,605-608 (which checks that the resolution value is an object, then checks that it's a Response.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/782#issuecomment-526654116

Received on Friday, 30 August 2019 15:55:08 UTC