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