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

Unified Diff: test/mjsunit/es6/debug-stepin-microtasks.js

Issue 2487673002: [debugger] Basic scope functionality and exception events in wrapper (Closed)
Patch Set: Formatting Created 4 years, 1 month 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/es6/debug-stepin-microtasks.js
diff --git a/test/mjsunit/es6/debug-stepin-microtasks.js b/test/mjsunit/es6/debug-stepin-microtasks.js
index e541f0f4b4a5a03ddf62a32105de24c07ffe4a7e..9e3bd172c801b5e855d058541295116a5d933941 100644
--- a/test/mjsunit/es6/debug-stepin-microtasks.js
+++ b/test/mjsunit/es6/debug-stepin-microtasks.js
@@ -7,18 +7,12 @@
Debug = debug.Debug
var exception = null;
var break_count = 0;
-var expected_breaks = -1;
+const expected_breaks = 9;
function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
assertTrue(exec_state.frameCount() != 0, "FAIL: Empty stack trace");
- if (!break_count) {
- // Count number of expected breakpoints in this source file.
- var source_text = exec_state.frame(0).func().script().source();
- expected_breaks = source_text.match(/\/\/\s*Break\s+\d+\./g).length;
- print("Expected breaks: " + expected_breaks);
- }
var source = exec_state.frame(0).sourceLineText();
print("paused at: " + source);
assertTrue(source.indexOf("// Break " + break_count + ".") > 0,
« no previous file with comments | « test/mjsunit/es6/debug-promises/throw-eventually-caught.js ('k') | test/mjsunit/es6/regress/regress-3280.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698