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

domenic commented on this pull request.



> @@ -10699,14 +10714,18 @@ the <code>typeof</code> operator will return "function" when applied to an inter
         1.  Let &lt;|constructor|, |values|&gt; be the result
             of passing |S| and |args|.
             to the [=overload resolution algorithm=].
-        1.  Let |R| be the result of performing
-            the actions listed in the description of |constructor|
-            with |values| as the argument values.
+        1.  Let |targetRealm| be [$GetFunctionRealm$]({{NewTarget}}).
+        1.  Let |object| be the result of [=internally create a new object implementing the

From what I can tell ES builtins actually create in the realm of NewTarget. See https://github.com/heycam/webidl/pull/635#discussion_r254879231 . I too was surprised.

-- 
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_r256918292

Received on Thursday, 14 February 2019 16:48:56 UTC