summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1556155.js
blob: 3c0dd112510f3d6bc90b72ece26d705e2187ad78 (plain)
1
2
3
4
5
6
7
// |jit-test| skip-if: !('oomTest' in this)
a = [];
minorgc();
Object.defineProperty(a, 12, {}).push(1);
toString = (function() { return a.reverse(); });
oomTest(Date.prototype.toJSON);
oomTest(Date.prototype.toJSON);