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

Unified Diff: test/mjsunit/debug-stepout-to-builtin.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 side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/debug-stepout-to-builtin.js
diff --git a/test/mjsunit/debug-stepout-to-builtin.js b/test/mjsunit/debug-stepout-to-builtin.js
index 772fb4b5e88d0801ee981a86ab39f1b31ae7c363..2e5e7a25f8c5aba974ab96a51eaedd15ffe0ee22 100644
--- a/test/mjsunit/debug-stepout-to-builtin.js
+++ b/test/mjsunit/debug-stepout-to-builtin.js
@@ -42,9 +42,9 @@ function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
if (state == 1) {
- exec_state.prepareStep(Debug.StepAction.StepOut, 2);
- state = 2;
- } else if (state == 2) {
+ exec_state.prepareStep(Debug.StepAction.StepOut);
+ state++;
+ } else {
assertEquals(expected_function_name, event_data.func().name());
assertEquals(expected_source_line_text,
event_data.sourceLineText());

Powered by Google App Engine
This is Rietveld 408576698