Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChengzhong Wu <legendecas@gmail.com>2022-09-13 12:04:24 +0300
committerJuan José Arboleda <soyjuanarbol@gmail.com>2022-10-11 22:45:24 +0300
commit4e49d5d1b4e4d8d7f7cd4380150cdf077fdd08e1 (patch)
treec8d5163d3983c54b37380110ad844ff5f5c5c72a /src
parent31f809acca92ff89bd0ce8617192ba30bc3b28d1 (diff)
inspector: expose inspector.close on workers
Workers can open their own inspector agent with `inspector.open`. They should be able to close their own inspector agent too with `inspector.close`. PR-URL: https://github.com/nodejs/node/pull/44489 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src')
-rw-r--r--src/node_process_methods.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc
index 6f8b42be010..f38f601d779 100644
--- a/src/node_process_methods.cc
+++ b/src/node_process_methods.cc
@@ -563,7 +563,6 @@ static void Initialize(Local<Object> target,
// define various internal methods
if (env->owns_process_state()) {
env->SetMethod(target, "_debugProcess", DebugProcess);
- env->SetMethod(target, "_debugEnd", DebugEnd);
env->SetMethod(target, "abort", Abort);
env->SetMethod(target, "causeSegfault", CauseSegfault);
env->SetMethod(target, "chdir", Chdir);
@@ -576,6 +575,7 @@ static void Initialize(Local<Object> target,
env->SetMethod(target, "cpuUsage", CPUUsage);
env->SetMethod(target, "resourceUsage", ResourceUsage);
+ env->SetMethod(target, "_debugEnd", DebugEnd);
env->SetMethod(target, "_getActiveRequests", GetActiveRequests);
env->SetMethod(target, "_getActiveRequestsInfo", GetActiveRequestsInfo);
env->SetMethod(target, "_getActiveHandles", GetActiveHandles);