Debian Codegraph @

js/src/jit-test/tests/gc/bug1191756.js

raw
1 // |jit-test| skip-if: typeof 'oomAtAllocation' === 'undefined'
2
3 function fn(i) {
4 if (i == 3)
5 return ["isFinite"].map(function (i) {});
6 return [];
7 }
8
9 try {
10 fn(0);
11 fn(1);
12 fn(2);
13 oomAtAllocation(50);
14 fn(3);
15 } catch(e) {
16 // Ignore oom
17 }
18