mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
node: fix leaking Context handle
The call to node::Environment::GetCurrent(Isolate*) makes the call to v8::Isolate::GetCurrentContext(). Doing so creates a new handle that bubbled to the v8::SealHandleScope(). PR-URL: https://github.com/nodejs/node/pull/3945 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: James Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
a79baf03cd
commit
3a48f0022f
1 file changed
+1
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user