summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1385428.js
blob: c586ec8f3eb25703f2030c9d2a3acdfdc127eedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| skip-if: !('oomTest' in this)

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) {}
}