- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 11 Dec 2018 15:13:55 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 11 December 2018 23:14:16 UTC
domenic commented on this pull request. > Every [=platform object=] is associated with a global environment, just as the [=initial objects=] are. It is the responsibility of specifications using Web IDL to state which global environment (or, by proxy, which global object) each platform object is associated with. +<div algorithm> + To <dfn>create an object implementing the interface</dfn> |interface|, with optional + intenal slots |slots|, for an interface which is not declared with the + [{{Global}}] [=extended attribute=], perform the following steps: + + 1. If |slots| is provided, append \[[PrimaryInterface]] to |slots|. + 1. Otherwise, let |slots| be « \[[PrimaryInterface]] ». + 1. Let |proto| be the [=interface prototype object=] of |interface|. + 1. Let |instance| be [$ObjectCreate$](|proto|, |slots|). + 1. Set |instance|.\[[PrimaryInterface]] to |interface|. + 1. Let |realm| be the current [=Realm=]. In previous discussions we wanted to default to the relevant realm, not the current one. And indeed it should be required in some scenarios; it would be a spec bug not to pass it. https://github.com/heycam/webidl/issues/135 -- 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/595#discussion_r240827799
Received on Tuesday, 11 December 2018 23:14:16 UTC