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

enableTrackAllocations();
for (a of "x") {
  gczeal(2, 1);
}
oomAfterAllocations(1);
try {
  newString();
} catch (x) {}