Index: test/mjsunit/harmony/generators-iteration.js |
diff --git a/test/mjsunit/harmony/generators-iteration.js b/test/mjsunit/harmony/generators-iteration.js |
index be795ea2be3760d72881c2d4a43ad541526da729..09a4cc50d6472be689745f21bd6a63bd4fe07d70 100644 |
--- a/test/mjsunit/harmony/generators-iteration.js |
+++ b/test/mjsunit/harmony/generators-iteration.js |
@@ -238,6 +238,17 @@ function TestReceivers() { |
// prior to generators, nothing needed to heap-allocate the receiver. |
// TestReceivers(); |
+TestGenerator( |
+ function* g() { |
+ var x = 1; |
+ yield x; |
+ with({x:2}) { yield x; } |
+ yield x; |
+ }, |
+ [1, 2, 1, undefined], |
+ "foo", |
+ [1, 2, 1, undefined]); |
+ |
function TestRecursion() { |
function TestNextRecursion() { |
function* g() { yield iter.next(); } |