Closed brettz9 closed 1 year ago
Submitting as a PR in case any feedback is desired...
Is it ok for me to go ahead and merge?
This should now be included in the structured cloning algorithm: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#error_types and https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/103 .
These mention, Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError and AggregateError. being cloneable and name
and message
being required, stack
being possible, and cause
, fileName
, lineNumber
, columnNumber
being implemented (and for AggregateError
also errors
without the latter three).
stack
,fileName
,lineNumber
, andcolumnNumber
andname
toerrors
(defaultname
can be changed after construction); also impactsbuiltin
,universal
,postmessage
, andsocketio
stack
,fileName
,lineNumber
, andcolumnNumber
toerror
(changes representation, but less likely thanerrors
to be breaking); fixes #10AggregateError
toerrors.js