summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Error/prototype.js
blob: b22a8e084b439855ef38002c9feb6835ad9643f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const nativeErrors = [
    InternalError,
    EvalError,
    RangeError,
    ReferenceError,
    SyntaxError,
    TypeError,
    URIError
];

assertEq(Reflect.getPrototypeOf(Error.prototype), Object.prototype)

for (const error of nativeErrors) {
    assertEq(Reflect.getPrototypeOf(error.prototype), Error.prototype);
}

if (typeof reportCompare === "function")
    reportCompare(0, 0);