Index: test/mjsunit/context-variable-assignments.js |
diff --git a/test/mjsunit/context-variable-assignments.js b/test/mjsunit/context-variable-assignments.js |
index 930b969609b5974f2c2ed46ab79610f575a171fd..f564b8f6481fde7ac099b944033edd3f3d9bea28 100644 |
--- a/test/mjsunit/context-variable-assignments.js |
+++ b/test/mjsunit/context-variable-assignments.js |
@@ -35,3 +35,19 @@ function foo() { |
} |
assertEquals("hello world", foo()); |
+ |
+// Also test that it works from more deeply nested inner functions: |
+ |
+var v = (function foo2() { |
+ var a, b; |
+ var bar = function() { |
+ var baz = function() { |
+ a = b = "bye world"; |
+ } |
+ baz(); |
+ } |
+ bar(); |
+ return a; |
+})(); |
+ |
+assertEquals("bye world", v); |