- From: Jordan Harband <notifications@github.com>
- Date: Fri, 09 Sep 2022 13:26:32 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 9 September 2022 20:26:45 UTC
@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