Re: [whatwg/webidl] Normative: Add DOMException cause (PR #1179)

@saschanaz nope, i think `cause` is new enough that there are no established patterns - but the only other alternatives are `Object.hasOwn(err, 'cause')` - which wouldn't work with this accessor approach either - or the incomplete approach of `typeof err.cause !== 'undefined'`, which fails to distinguish between a causeless error and an undefined cause error.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1179#issuecomment-1242428156
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1179/c1242428156@github.com>

Received on Friday, 9 September 2022 20:26:45 UTC