Index: test/mjsunit/es6/debug-stepnext-for.js |
diff --git a/test/mjsunit/es6/debug-stepnext-for.js b/test/mjsunit/es6/debug-stepnext-for.js |
index f15e4781cf4699eca2fec3f467ae0350b340dcaa..fe50fa76b9f894f97e2a5d0fd57c0437f539ac2b 100644 |
--- a/test/mjsunit/es6/debug-stepnext-for.js |
+++ b/test/mjsunit/es6/debug-stepnext-for.js |
@@ -58,7 +58,9 @@ function f() { |
s += a[j]; // Break L |
} |
- // TODO(yangguo): add test case for for-let. |
+ for (let i = 0; i < 3; i++) { // Break m |
+ s += a[i]; // Break M |
+ } |
} // Break y |
function listener(event, exec_state, event_data, data) { |
@@ -107,11 +109,13 @@ var expected = [ |
"k7","k20","K4","k23","k20","K4","k23","k20","K4","k23","k20", |
// For: init, condition, body, next, condition, body, ... |
"l7","l16","L4","l19","l16","L4","l19","l16","L4","l19","l16", |
+ // For-let: init, condition, body, next, condition, body, ... |
+ "m7","m20","M4","m23","m20","M4","m23","m20","M4","m23","m20", |
// Exit. |
"y0","z0", |
] |
print("expected:\n"+ JSON.stringify(expected)); |
assertArrayEquals(expected, log); |
-assertEquals(48, s); |
+assertEquals(54, s); |
assertNull(exception); |