- From: Daniel Ehrenberg <notifications@github.com>
- Date: Fri, 21 Dec 2018 13:58:05 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <heycam/webidl/pull/595/review/187549970@github.com>
littledan 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| and |new.target| value |newTarget|, 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. If |NewTarget| is provided, let |instance| be ? [$OrdinaryCreateFromConstructor$](|newTarget|, "%ObjectPrototype%") + 1. Otherwise, + 1. Let |realm| be the [=relevant Realm=] of the |this| value that led to the execution of this algorithm. + 1. Let |proto| be the [=interface prototype object=] of |interface| in |realm|. + 1. Let |instance| be [$ObjectCreate$](|proto|, |slots|). + 1. Set |instance|.\[[PrimaryInterface]] to |interface|. + 1. Let |realm| be the current [=Realm=]. Thanks, will fix. -- 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_r243701115
Received on Friday, 21 December 2018 21:58:27 UTC