diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1107011-2.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1107011-2.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1107011-2.js b/js/src/jit-test/tests/ion/bug1107011-2.js new file mode 100644 index 0000000000..d59685ea05 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1107011-2.js @@ -0,0 +1,12 @@ +function foo() { + var x = 0, y = 0, a = new Float32Array(1); + function bar() { + x = y; + y = a[0]; + } + for (var i = 0; i < 1000; i++) { + bar(); + } +} +for (var i=0; i < 50; i++) + foo(); |