Index: src/d8-debug.cc |
diff --git a/src/d8-debug.cc b/src/d8-debug.cc |
index 8a3886c676b7524e0a6f99daf92165965f1c094c..06622057b4a487364c305754256cf9f9353fc076 100644 |
--- a/src/d8-debug.cc |
+++ b/src/d8-debug.cc |
@@ -272,6 +272,7 @@ RemoteDebuggerEvent* RemoteDebugger::GetEvent() { |
void RemoteDebugger::HandleMessageReceived(char* message) { |
+ Locker lock; |
HandleScope scope; |
// Print the event details. |
@@ -300,6 +301,7 @@ void RemoteDebugger::HandleMessageReceived(char* message) { |
void RemoteDebugger::HandleKeyboardCommand(char* command) { |
+ Locker lock; |
HandleScope scope; |
// Convert the debugger command to a JSON debugger request. |