blob: 6fa2e17a580c2506f80b862e43e1190f9ce2a0e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if (!('oomAfterAllocations' in this))
quit();
gcslice(0); // Start IGC, but don't mark anything.
function f(str) {
for (var i = 0; i < 10; i++) {
arr = /foo(ba(r))?/.exec(str);
var x = arr[oomAfterAllocations(100)] + " " + arr[1] + " " + 1899;
}
}
try {
f("foo");
} catch(e) {}
|