pub const DOM_EXCEPTION_CODES: &[(&str, f64)];
The legacy numeric DOMException.code a WHATWG error name maps to. A name outside the table — including the default "Error" — reports 0.
DOMException.code
"Error"