blob: 730b2419a071bca6b984034c022bcc6470c6a07a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
if (!('oomTest' in this))
quit();
for (let i = 0; i < 10; i++)
toPrimitive = Date.prototype[Symbol.toPrimitive];
assertThrowsInstanceOf(() => 0);
obj = {};
oomTest(() => assertThrowsInstanceOf(() => toPrimitive.call(obj, "boolean")));
function assertThrowsInstanceOf(f) {
f();
}
|