summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Error/constructor-proto.js
blob: 4ddc6025e8794c907fd6ed3ed827b4a191d2333a (plain)
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);