diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1408412.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1408412.js b/js/src/jit-test/tests/ion/bug1408412.js new file mode 100644 index 0000000000..a69749f9aa --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1408412.js @@ -0,0 +1,15 @@ +function g() { + return arguments.length; +} +function f() { + with(this) {}; + for (var i = 0; i < 100; i++) { + g(); + } + var s = "for (var j = 0; j < 1200; j++) assertEq(g("; + for (var i = 0; i < 5000; i++) + s += i + ","; + s += "1), 5001);"; + eval(s); +} +f(); |