summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js')
-rw-r--r--deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js b/deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js
index 071397beac..4592ffcc2e 100644
--- a/deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js
+++ b/deps/v8/test/mjsunit/debug-enable-disable-breakpoints.js
@@ -88,3 +88,18 @@ assertEquals(5, break_point_hit_count);
Debug.disableBreakPoint(bp1);
f();
assertEquals(6, break_point_hit_count);
+
+// Deactivate all breakpoints.
+Debug.debuggerFlags().breakPointsActive.setValue(false);
+f();
+assertEquals(6, break_point_hit_count);
+
+// Enable the first breakpoint.
+Debug.enableBreakPoint(bp1);
+f();
+assertEquals(6, break_point_hit_count);
+
+// Activate all breakpoints.
+Debug.debuggerFlags().breakPointsActive.setValue(true);
+f();
+assertEquals(7, break_point_hit_count);