summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/bug497015-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/closures/bug497015-1.js')
-rw-r--r--js/src/jit-test/tests/closures/bug497015-1.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/closures/bug497015-1.js b/js/src/jit-test/tests/closures/bug497015-1.js
new file mode 100644
index 000000000..ac0511a31
--- /dev/null
+++ b/js/src/jit-test/tests/closures/bug497015-1.js
@@ -0,0 +1,19 @@
+actual = '';
+expected = ',0,0,8888,0,0,8888,0,0,/x/,0,0,';
+
+for each(let a in ['', 8888, 8888, /x/]) {
+ '';
+ for each(e in ['', false, '']) {
+ (function(e) {
+ for each(let c in ['']) {
+ appendToActual(a);
+ }
+ })();
+ for (let aa = 0; aa < 1; ++aa) {
+ a = aa;
+ }
+ }
+}
+
+
+assertEq(actual, expected)