diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug989586.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug989586.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug989586.js b/js/src/jit-test/tests/ion/bug989586.js new file mode 100644 index 000000000..c21876dba --- /dev/null +++ b/js/src/jit-test/tests/ion/bug989586.js @@ -0,0 +1,15 @@ +function t() { + var iter = 0; + function a(w) { + var a = new Array(w); + assertEq(a.length, w); + } + function r() { + a(3); + a(4); + } + for (var i=0; i<100; i++) { + r(); + } +} +t(); |