Re: [heycam/webidl] Throw when not calling interfaces as constructors (#205)

tobie commented on this pull request.



> @@ -10361,19 +10363,12 @@ is the [=interface=]:
         [=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.  Assert: |R| is an object that implements |I|.

There's something I don't quite understand here. If |R| is a completion value, then |R|.[[Value]] is an ECMAScript language value. If so, why do we "convert |R| to an ECMAScript interface type value |I|" in the the last step of the algorithm?

-- 
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/205

Received on Thursday, 27 October 2016 09:19:13 UTC