diff options
Diffstat (limited to 'js/src/jit-test/tests/closures/t019.js')
-rw-r--r-- | js/src/jit-test/tests/closures/t019.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/closures/t019.js b/js/src/jit-test/tests/closures/t019.js new file mode 100644 index 000000000..bbd0ade7c --- /dev/null +++ b/js/src/jit-test/tests/closures/t019.js @@ -0,0 +1,16 @@ +actual = ''; +expected = 'undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,'; + +for (x = 0; x < 10; ++x) { + for each(let a in ['', NaN, 3, 5.5, {}]) { + appendToActual((function() { + for (let y = 0; y < 1; ++y) { + '' + a + } + })()) + } +} + + + +assertEq(actual, expected) |