Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: test/mjsunit/es6/debug-stepnext-for.js

Issue 1525173003: [debugger] remove step count parameter from prepare step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-debug-as debug --harmony 5 // Flags: --expose-debug-as debug --harmony
6 6
7 Debug = debug.Debug; 7 Debug = debug.Debug;
8 var break_count = 0 8 var break_count = 0
9 var exception = null; 9 var exception = null;
10 var log = [] 10 var log = []
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 function listener(event, exec_state, event_data, data) { 66 function listener(event, exec_state, event_data, data) {
67 if (event != Debug.DebugEvent.Break) return; 67 if (event != Debug.DebugEvent.Break) return;
68 try { 68 try {
69 var line = exec_state.frame(0).sourceLineText(); 69 var line = exec_state.frame(0).sourceLineText();
70 var col = exec_state.frame(0).sourceColumn(); 70 var col = exec_state.frame(0).sourceColumn();
71 print(line); 71 print(line);
72 var match = line.match(/\/\/ Break (\w)$/); 72 var match = line.match(/\/\/ Break (\w)$/);
73 assertEquals(2, match.length); 73 assertEquals(2, match.length);
74 log.push(match[1] + col); 74 log.push(match[1] + col);
75 exec_state.prepareStep(Debug.StepAction.StepNext, 1); 75 exec_state.prepareStep(Debug.StepAction.StepNext);
76 break_count++; 76 break_count++;
77 } catch (e) { 77 } catch (e) {
78 exception = e; 78 exception = e;
79 } 79 }
80 } 80 }
81 81
82 Debug.setListener(listener); 82 Debug.setListener(listener);
83 f(); 83 f();
84 Debug.setListener(null); // Break z 84 Debug.setListener(null); // Break z
85 85
(...skipping 29 matching lines...) Expand all
115 // For-let: init, condition, body, next, condition, body, ... 115 // For-let: init, condition, body, next, condition, body, ...
116 "m7","m20","M4","m26","m20","M4","m26","m20","M4","m26","m20", 116 "m7","m20","M4","m26","m20","M4","m26","m20","M4","m26","m20",
117 // Exit. 117 // Exit.
118 "y0","z0", 118 "y0","z0",
119 ] 119 ]
120 print("expected:\n"+ JSON.stringify(expected)); 120 print("expected:\n"+ JSON.stringify(expected));
121 121
122 assertArrayEquals(expected, log); 122 assertArrayEquals(expected, log);
123 assertEquals(54, s); 123 assertEquals(54, s);
124 assertNull(exception); 124 assertNull(exception);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698