Re: [webidl] Make the DOMException constructor accept a name (#22)

Thanks Domenic, and sorry again for the delay.  This looks good.

I'm not sure if there is great consistency in the ES spec about whether exception-ignoring [[DefineOwnProperty]] calls or DefinePropertyOrThrow should be used in general, but the latter (which you've changed to, for setting `message` and `code`) does look more common.  I wonder if there are other places in Web IDL where we should switch to DefinePropertyOrThrow?

Now that you have introduced the «1, 2, 3» syntax for abstract list values, there are probably a bunch of places in the spec that we should update to use it.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/22#issuecomment-93875897

Received on Friday, 17 April 2015 01:42:33 UTC