diff --git a/src/node.cc b/src/node.cc index 6f4ccbdeac4139..25cfc428987e15 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3177,6 +3177,7 @@ static void EnableDebug(Environment* env) { // Called from the main thread. static void DispatchDebugMessagesAsyncCallback(uv_async_t* handle) { + HandleScope scope(node_isolate); if (debugger_running == false) { fprintf(stderr, "Starting debugger agent.\n");