Re: [whatwg/webidl] What's the idiomatic way to reject a promise with structured data? (Issue #1223)

Good timing! We are adding a pattern exactly for this case in https://github.com/whatwg/webidl/pull/1211 .

I don't think using `cause` is appropriate here, because there was no inner exception thrown by some other subsystem, which this is wrapping. Also, `SyntaxError` does not contain column or line numbers.

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

Message ID: <whatwg/webidl/issues/1223/1284762303@github.com>

Received on Thursday, 20 October 2022 01:15:12 UTC