blob: 9f0f01d5b9f9e6c8b6f0829fcaeafa9f0e30410e [file] [log] [blame]
[
EvalError, RangeError, ReferenceError,
SyntaxError, TypeError, URIError,
].forEach((NativeError) => {
if (NativeError.prototype.hasOwnProperty('toString')) {
throw new Error(`${NativeError.name}.prototype should not have own property 'toString'`);
}
if (NativeError.prototype.toString !== Error.prototype.toString) {
throw new Error(`${NativeError.name}.prototype.toString should equal Error.prototype.toString`);
}
});