Re: [heycam/webidl] Add an algorithm to create a platform object. (#635)

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