summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1253124.js
blob: 6949605b007586a0cf48bc5bfe7289417d0ca69c (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('oomTest' in this)

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();
}