Re: [webrtc-pc] DOMException(name=<Exception>) or instances of <Exception>?

WebRTC currently has "created OperationError" where "created" is a citation to WebIDL (first time I looked at this it just sent me to [WebIDL] in the references section and not the definition in WebIDL, weirdly?), where the "created" citation does say that it creates a DOMException.

I'd strongly recommend following what the DOM spec does, with wording like 'throw a "SyntaxError" DOMException', as this makes it unambiguous that a DOMException is being created/thrown.

As with WebIDL 2, I'd expect things throwing TypeError to not throw a DOMException but to throw a TypeError.

-- 
GitHub Notification of comment by gsnedders
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1817#issuecomment-376303708 using your GitHub account

Received on Monday, 26 March 2018 20:38:29 UTC