summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug1344334.js
blob: 82451488337bf64f89e3a9c4ebb5c10d0c1d1c21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| skip-if: !('oomTest' in this)

function f(s) {
    s + "x";
    s.indexOf("y") === 0;
    oomTest(new Function(s));
}
var s = `
    class TestClass { constructor() {} }
    for (var fun of hasPrototype) {}
`;
if (s.length)
    f(s);