Re: [heycam/webidl] "converting to an ECMAScript value" needs to take a realm, at least sometimes (#371)

Not trivially.

You could look for specs that have `object` or `any` (or sequences thereof) return values.  And specs with `Promise<sequence<something>>` return values.  And so on....

It's not even trivial to tell from implementations, I suspect.  In Gecko promises will automatically pick a global based on various criteria when you resolve them with something...

That said, a non-exhaustive list (just `Promise<sequence<*>>` bits, not all of which actually invoke the WebIDL algorithm) is:

* https://w3c.github.io/ServiceWorker/#clients-getall (rather broken; creates array objects in parallel steps, _manipulates_ array objects in parallel steps; filed <https://github.com/w3c/ServiceWorker/issues/1240>).
* https://w3c.github.io/ServiceWorker/#dom-cache-keys step 5.4.3
* https://w3c.github.io/ServiceWorker/#dom-cachestorage-keys
* https://w3c.github.io/ServiceWorker/#cache-matchall -- specifies the realm, nice!
* getFilesAndDirectories in http://w3c.github.io/filesystem-api/ (not directly linkable?)
* https://drafts.csswg.org/css-font-loading/#dom-fontfaceset-load
* https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-enumeratedevices
* WebVR's `activeVRDisplays` (Can't find a spec draft for this)
* https://w3c.github.io/ServiceWorker/#navigator-service-worker-getRegistrations (filed <https://github.com/w3c/ServiceWorker/issues/1241>)
* https://notifications.spec.whatwg.org/#dom-serviceworkerregistration-getnotifications sort of (filed <https://github.com/whatwg/notifications/issues/113>)


-- 
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/371#issuecomment-348971336

Received on Monday, 4 December 2017 14:06:19 UTC