Commit a1f20f09 authored by adamk's avatar adamk Committed by Commit bot

Add debug-stepnext test for for-let loops

Review URL: https://codereview.chromium.org/1215383002

Cr-Commit-Position: refs/heads/master@{#29523}
parent 01fe045b
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment