tc39 / proposal-is-error

ECMAScript Proposal, specs, and reference implementation for Error.isError
https://tc39.es/proposal-is-error/
MIT License
74 stars 2 forks source link

WebIDL integration #6

Closed petamoriken closed 4 days ago

petamoriken commented 4 months ago

DOMException does't have [[ErrorData]] internal slot. This means that we may need to work on the WebIDL side.

https://webidl.spec.whatwg.org/#dom-domexception-domexception https://webidl.spec.whatwg.org/#js-DOMException-specialness

ljharb commented 4 months ago

The slot is mandated by the JS spec, so if WebIDL lacks that slot then it should indeed be added.

littledan commented 4 months ago

I'm glad to see this issue filed and solution presented. Let's try to get a WebIDL PR out there before Stage 2.7.

ljharb commented 4 days ago

Closing this, since https://github.com/whatwg/webidl/pull/1421 is filed and conceptually approved.