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

annevk 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|.

R is something that's not concretely defined since we don't have requirements for what IDL-prose can and cannot be. I agree that it cannot really be a completion value, but I also agree with @domenic that it can have thrown an exception (constructors do this) and we do need to handle that somehow.

-- 
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 11:22:30 UTC