Debian Codegraph @

js/src/jit-test/tests/ion/scalar-replacement-oom.js

raw
1 var lfcode = new Array();
2 function k(a, f_arg, b, c) {
3 for (var i = 0; i < 5; ++i) {
4 f_arg(i + a);
5 }
6 }
7 function t() {
8 var x = 2;
9 k(50, function(i) {
10 x = i;
11 }, 100, 200);
12 oomAtAllocation(101);
13 }
14
15 try {
16 t();
17 t();
18 } catch(e) {
19 // ignore the exception
20 }