summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1216157.js
blob: 1ec9497e40a297768449d0c1667b720f5624b02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !('oomAfterAllocations' in this); 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) {}