summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/plain-object-prototypes.js
blob: c53f0c9e163e474cd42e10c5d838bd7eb5e767fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const prototypes = [
    Map.prototype,
    Set.prototype,
    WeakMap.prototype,
    WeakSet.prototype,
    Date.prototype,
    Error.prototype,
    InternalError.prototype,
    EvalError.prototype,
    RangeError.prototype,
    ReferenceError.prototype,
    SyntaxError.prototype,
    TypeError.prototype,
    URIError.prototype,
    RegExp.prototype,
];

for (const prototype of prototypes) {
    delete prototype[Symbol.toStringTag];
    assertEq(Object.prototype.toString.call(prototype), "[object Object]");
}