1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
loadFile(` try { Array.prototype.splice.call({ get length() { "use asm" function f() {} return f; } }); } catch (e) { assertEq(e, s2, "wrong error thrown: " + e); } `); function loadFile(lfVarx) { try { oomTest(new Function(lfVarx)); } catch (lfVare) {} }