summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1355046.js
blob: 86bf7bec92218a10c8b9fefd7cc4f9a010bbe191 (plain)
1
2
3
4
5
6
7
8
// |jit-test| error: ReferenceError

var localstr = "";
for (var i = 0; i < 0xFFFC; ++i)
  localstr += ('\f') + i + "; ";
var arg = "x";
var body = localstr + "for (var i = 0; i < 4; ++i) arr[i](x-1);";
(new Function(arg, body))(1000);