summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1492574.js
blob: 070d69eaf7122c5d0af5bebb9828398e2dc1a87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
`))