[heycam/webidl] Constructing DOMException with causes (#969)

The [proposal](https://github.com/tc39/proposal-error-cause) for adding an additional option bag to ECMAScript Error constructor to construct errors with a cause property has reached stage 3 in the TC39 proposal process. The proposal is seeking for chaining logically related errors without losing their context information like messages, properties, and stacks. 

There has been [discussion](https://github.com/tc39/proposal-error-cause/issues/10#issuecomment-735929538) that `DOMException` can also adopt the signature (by overloading the second parameter `name` to with an object as the option bag) so that DOMException on the Web and Error in ECMAScript can be constructed with similar parameters. 

As the proposal error cause has reached stage 3 and implementations have been trying to land the proposal (chakra-core/ChakraCore@b992a5d, WebKit/WebKit@b03c4f4), I'm opening this issue here seeking feedbacks on the `DOMException` changes.

-- 
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/issues/969

Received on Sunday, 21 March 2021 16:58:50 UTC