summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1253124.js
blob: 3302e120fb22d971b405b256c06ab1e7e863f172 (plain)
1
2
3
4
5
6
7
8
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();
}