- From: Boris Zbarsky <notifications@github.com>
- Date: Fri, 08 Feb 2019 13:30:29 +0000 (UTC)
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 8 February 2019 13:31:06 UTC
bzbarsky commented on this pull request. > 1. Assert: |interface| is [=exposed=] in |realm|. + 1. Let prototype be the [=interface prototype object=] for |interface| in + |realm|. + 1. If |newTarget| is provided, then: + 1. Issue: If we just pass {{NewTarget}} through in a constructor, would this not + always be defined (sometimes to the [=interface object=] itself)? + 1. Let |newTargetPrototype| be [=?=] [$Get$](|newTarget|, "prototype"). Yeah, to be clear, the Gecko behavior, in the absence of an explicit spec, was written to match the ES semantics, since that was the only example of constructor behavior around. I don't see any reason for deviating from those semantics in Web IDL, but obviously I'm biased, since I wrote the Gecko code here. ;) -- 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/635#discussion_r255073257
Received on Friday, 8 February 2019 13:31:06 UTC