1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
const nativeErrors = [ InternalError, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError ]; assertEq(Reflect.getPrototypeOf(Error), Function.prototype) for (const error of nativeErrors) assertEq(Reflect.getPrototypeOf(error), Error); if (typeof reportCompare === "function") reportCompare(0, 0);