summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/bug1852218.js
blob: 0af504eec47ec4f2c966c5465e1da127448c324c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| skip-if: getBuildConfiguration("arm64-simulator") === true
// This test times out in ARM64 simulator builds.

function makeIonCompiledScript(n) {
  let src = "";
  for (var i = 0; i < n; i++) {
    src += "\n";
  }
  src += "function f() {}";
  eval(src);
  f();
  return f;
}

for (var i = 0; i < 5010; i++) {
  makeIonCompiledScript(i);
}