Debian Codegraph @

js/src/jit-test/tests/basic/plain-object-prototypes.js

raw
1 const prototypes = [
2 Map.prototype,
3 Set.prototype,
4 WeakMap.prototype,
5 WeakSet.prototype,
6 Date.prototype,
7 Error.prototype,
8 InternalError.prototype,
9 EvalError.prototype,
10 RangeError.prototype,
11 ReferenceError.prototype,
12 SyntaxError.prototype,
13 TypeError.prototype,
14 URIError.prototype,
15 RegExp.prototype,
16 ];
17
18 for (const prototype of prototypes) {
19 delete prototype[Symbol.toStringTag];
20 assertEq(Object.prototype.toString.call(prototype), "[object Object]");
21 }