Reads the machine code off any value, without assuming it is an error.
Any object carrying a code property yields it — including native DOMException and
Node-style errors, which is deliberate. Anything else yields "UNKNOWN_ERROR", so the
result is always a usable string.
Reads the machine code off any value, without assuming it is an error.
Any object carrying a
codeproperty yields it — including nativeDOMExceptionand Node-style errors, which is deliberate. Anything else yields"UNKNOWN_ERROR", so the result is always a usable string.