bug1928852.js (331B)
1 // |jit-test| --fuzzing-safe; --no-threads; --no-blinterp; --no-baseline; --no-ion 2 3 function test() { 4 g = newGlobal(); 5 if (!('oomTest' in g)) { 6 return; 7 } 8 9 g.eval(` 10 Int8Array; 11 evalcx('\ 12 /x/;\ 13 oomTest(function() {\ 14 eval("function b() {}; function* f() {}");\ 15 });\ 16 ', newGlobal()); 17 `); 18 } 19 test();