diff options
Diffstat (limited to 'js/src/jit-test/tests/parser/bug-1355046.js')
-rw-r--r-- | js/src/jit-test/tests/parser/bug-1355046.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/parser/bug-1355046.js b/js/src/jit-test/tests/parser/bug-1355046.js new file mode 100644 index 0000000000..86bf7bec92 --- /dev/null +++ b/js/src/jit-test/tests/parser/bug-1355046.js @@ -0,0 +1,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); |