blob: 930bd6277647ce0d5b20530123c17cfdaefd00a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |jit-test| skip-if: !('oomTest' in this)
function test(lfVarx) {
try {
oomTest(function() {
let m41 = parseModule(lfVarx);
moduleLink(m41);
moduleEvaluate(m41);
});
} catch (lfVare) {}
}
test(`
var g93 = newGlobal({newCompartment: true});
g93.eval("f(10);");
`);
|