- From: Daniel Ehrenberg <notifications@github.com>
- Date: Wed, 12 Dec 2018 16:01:39 +0000 (UTC)
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 December 2018 16:02:11 UTC
Note that these semantics differ from JavaScript async functions, which create a Promise in the current Realm. Verified in Chromium and Firefox that HTMLImageElement.decode and CustomElementsRegistry.whenDefined return Promise instances from the relevant realm. (I'm not sure what's the preferred way to typeset "this", or if it would be preferred to thread it explicitly through the algorithm. Also, it's not quite necessary to use the relevant Promise.resolve function, since resolve effectively uses the relevant realm of its receiver(!)) Resolves part of #135 You can view, comment on, or merge this pull request online at: https://github.com/heycam/webidl/pull/598 -- Commit Summary -- * Specify that returned Promises are created in the relevant realm -- File Changes -- M index.bs (5) -- Patch Links -- https://github.com/heycam/webidl/pull/598.patch https://github.com/heycam/webidl/pull/598.diff -- 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/pull/598
Received on Wednesday, 12 December 2018 16:02:11 UTC