src,lib: re-implement DOMException as a cloneable native object
The JavaScript-implemented DOMException
is not structured cloneable without ugly hacks.
This re-implements it in C++ as a cloneable BaseObject
.
Also makes AbortError
structured cloneable.