Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 2be6c97493e2269078baacbc032671a736c3241f..f4942ccd18bdba2a15a28dae112da82797d2e9bd 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -30,7 +30,8 @@ RUNTIME_FUNCTION(Runtime_DebugBreak) { |
RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 0); |
- isolate->debug()->HandleDebugBreak(); |
+ if (isolate->debug()->break_points_active()) |
Yang
2016/02/12 20:17:41
Please add curly brackets.
kozy
2016/02/12 20:29:07
Done.
|
+ isolate->debug()->HandleDebugBreak(); |
return isolate->heap()->undefined_value(); |
} |