summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1207413.js
blob: aedb8ece3043f4b1184617d2d84c0cda557e8aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: !('oomAfterAllocations' in this)

function first(a) {
    return a[0];
}

try {
    first([function() {}]);
    first([function() {}]);
    oomAfterAllocations(50);
    first([function() {}]);
} catch(e) {
    // ignore oom
}