diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testInnerTreeMutatingUpvars.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testInnerTreeMutatingUpvars.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testInnerTreeMutatingUpvars.js b/js/src/jit-test/tests/basic/testInnerTreeMutatingUpvars.js new file mode 100644 index 0000000000..97502f8364 --- /dev/null +++ b/js/src/jit-test/tests/basic/testInnerTreeMutatingUpvars.js @@ -0,0 +1,17 @@ +function f() { + for (var a = 0; a < 8; ++a) { + (function () { + var x; + for (var b = 0; b < 8; ++b) { + x = 0; + (function () { + for (var i = 0; i < 1; ++i) { + x = 1; + } + })(); + x++; + } + })(); + } +} +f(); |