Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 2be6c97493e2269078baacbc032671a736c3241f..77e564e93417c88b934f74558b14495bcfa07899 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -30,7 +30,9 @@ RUNTIME_FUNCTION(Runtime_DebugBreak) { |
RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 0); |
- isolate->debug()->HandleDebugBreak(); |
+ if (isolate->debug()->break_points_active()) { |
+ isolate->debug()->HandleDebugBreak(); |
+ } |
return isolate->heap()->undefined_value(); |
} |