blob: 01a654502bb2e3e6b6213e800e5fc9dce912f741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// |jit-test| allow-oom
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) {}
|