summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1385428.js
blob: 2044b52b96e34ce436e76d8d76f8e38e1b072cd1 (plain)
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) {}
}