blob: 5529d950ea0af9a5a0be702739f18016512648e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| slow
const USE_ASM = '"use asm";';
if (!('oomTest' in this))
quit();
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"));
});
|