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]");
}
|