summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1492574.js
blob: c1ce0c000ab915402496ed499eff188601d6f112 (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)

function foo() {}
function foooooooooooooooooooooooooooooooo() {}
function fn(s) {
    var o = {a:1}
    eval(("f" + s) + "()");
    if (!('a' in o)) {
        print("unreachable");
    }
}
for (var i = 0; i < 1100; i++) {
    fn("oo");
}
oomTest(new Function(`
  let a = newRope("oooooooooooooooo","oooooooooooooooo");
  fn(a);
`))