blob: 004136bc181abcd75357ded57106382a93fd4755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// |jit-test| slow; skip-if: !('oomTest' in this)
const USE_ASM = '"use asm";';
function asmCompile() {
var f = Function.apply(null, arguments);
}
oomTest(() => {
try {
function f(b) {}
} catch (exc0) {}
f(asmCompile(USE_ASM + "function f() { var i=42; return i|0; for(;1;) {} return 0 } return f"));
});
|