dfahlander / typeson-registry

The type registry for typeson
MIT License
6 stars 5 forks source link

Add properties #13

Closed brettz9 closed 1 year ago

brettz9 commented 5 years ago
brettz9 commented 5 years ago

Submitting as a PR in case any feedback is desired...

brettz9 commented 5 years ago

Is it ok for me to go ahead and merge?

brettz9 commented 1 year ago

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).