You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like using error.cause. The main issue here though is cross-realm serialization. I guess that mostly works for errors these days, although I wish someone (not me) had the time to make it work with the new error types and capabilities. I tried in whatwg/html#5749 but got stalled. (I guess Firefox implemented something without a spec.)
Seems reasonable, might require some Web IDL changes to be able to set this property?
saschanaz
changed the title
How to expose the error from ReadableStream for Response methods?
Expose the error from ReadableStream for Response methods via err.causeJul 4, 2023
Different browsers do different things:
[object Object]
by stringification)Should the spec define a way to do this? Maybe use the new
error.cause
?The text was updated successfully, but these errors were encountered: