diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug691747.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug691747.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug691747.js b/js/src/jit-test/tests/ion/bug691747.js new file mode 100644 index 000000000..94c37ff59 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug691747.js @@ -0,0 +1,11 @@ +function reportCompare(actual) - ++actual + "'"; +var UBound = 0; +var actualvalues = []; +for (var li = 0; li < 6; ++li) addThis(); +function addThis() { + UBound++; + for (var i=0; i<UBound; i++) { + reportCompare(actualvalues[i]); + } +} +for (var li = 0; li < 3; ++li) addThis(); |