Re: [webidl] DOMException function definition makes no sense (#55)

> The intent is not to produce a platform object

DOMException is explicitly defined and treated as a platform object throughout the rest of Web IDL.  There is no way to implement the other requirements Web IDL places on DOMException if it's not a platform object.  So either all the rest of the DOMException handling in the spec needs to be changed, or this constructor needs to create the right sort of object.

I should note that currently UAs implement DOMException as a platform object, and it's not obvious that changing that would necessarily be web-compatible.  If we think the gain is sufficiently worth it we _could_ try changing all UAs here, of course, but this is very much not the normal paving of cowpaths we normally use for decades-old functionality.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/55#issuecomment-119622515

Received on Wednesday, 8 July 2015 15:19:10 UTC