diff options
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1701208.js')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1701208.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1701208.js b/js/src/jit-test/tests/warp/bug1701208.js new file mode 100644 index 0000000000..184c8dbf24 --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1701208.js @@ -0,0 +1,18 @@ +// |jit-test| --fast-warmup; --no-threads + +function dummy() { with ({}) {} } + +function foo() { + dummy(); + var x = []; + var y = []; + for (var i = 0; i < 10; i++) { } + for (var i = 0; i < 100; i++) { + var swap = x; + x = y; + y = swap; + } + return x; +} + +foo(); |