summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1667680.js
blob: 8e1b8c00971e8aedd7a0e4e540fbbb73f60099ea (plain)
1
2
3
4
5
6
7
8
// |jit-test| --ion-limit-script-size=off
function f() {
  var s = "for (var i = 0; i < 100; i++) {}; return 2;";
  s += "var x = [" + "9,".repeat(100_000) + "];";
  var g = Function(s);
  assertEq(g(), 2);
}
f();