Index: test/mjsunit/harmony/generators-iteration.js |
diff --git a/test/mjsunit/harmony/generators-iteration.js b/test/mjsunit/harmony/generators-iteration.js |
index 7fad97e9445ce1f5b4a85180be3e6b013c2789fa..18bfc505197ac3f51250e697bae1c523aa0f7a4b 100644 |
--- a/test/mjsunit/harmony/generators-iteration.js |
+++ b/test/mjsunit/harmony/generators-iteration.js |
@@ -53,9 +53,10 @@ function TestGenerator(g, expected_values_for_next, |
function testNext(thunk) { |
var iter = thunk(); |
for (var i = 0; i < expected_values_for_next.length; i++) { |
- assertIteratorResult(expected_values_for_next[i], |
- i == expected_values_for_next.length - 1, |
- iter.next()); |
+ var v1 = expected_values_for_next[i]; |
+ var v2 = i == expected_values_for_next.length - 1; |
+ // var v3 = iter.next(); |
+ assertIteratorResult(v1, v2, iter.next()); |
} |
assertThrows(function() { iter.next(); }, Error); |
} |