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

Unified Diff: test/mjsunit/debug-negative-break-points.js

Issue 1615903002: [debugger] muting break positions should work for the entire statement. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adapt comment Created 4 years, 11 months 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
« no previous file with comments | « src/debug/debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-negative-break-points.js
diff --git a/test/mjsunit/debug-negative-break-points.js b/test/mjsunit/debug-negative-break-points.js
index d2383c97b0ede2e0b1ee7f8291e3e0a873e03787..1eb8943a074f31d4103bde9c279b4711622c31dc 100644
--- a/test/mjsunit/debug-negative-break-points.js
+++ b/test/mjsunit/debug-negative-break-points.js
@@ -33,6 +33,14 @@ function g(x) {
}
}
+function h(x) {
+ var a = undefined;
+ try {
+ var x = a();
+ } catch (e) {
+ }
+}
+
Debug.setListener(listener);
assertCount(0, 0);
@@ -79,5 +87,13 @@ assertCount(8, 4);
g(0);
assertCount(8, 4);
+h(0);
+assertCount(8, 5);
+Debug.setBreakPoint(h, 3, 0, "x > 0");
+h(1);
+assertCount(9, 6);
+h(0);
+assertCount(9, 6);
+
Debug.clearBreakOnException();
Debug.setListener(null);
« no previous file with comments | « src/debug/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698