[whatwg/streams] Specify realm for object creation (Issue #1213)

As pointed out by @mgaudet in Matrix, the spec is not clear on what realms things should be created in, and the result is not interoperable across browsers.

To audit:

- All references to Web IDL "new"
- All references to "a new promise" / "a promise rejected with" / "a promise resolved with"
- All raw ES-spec object creation using `%%` intrinsics, although some of these might be able to be replaced with the stuff introduced in https://github.com/whatwg/webidl/pull/987

Per https://github.com/whatwg/webidl/issues/135 the intention is to use the relevant realm of this. Alternately we could fix that issue at its source per https://github.com/whatwg/webidl/issues/135#issuecomment-772716243 ... that's quite tempting.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1213
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1213@github.com>

Received on Monday, 24 January 2022 18:06:05 UTC