diff options
author | Chengzhong Wu <legendecas@gmail.com> | 2022-09-13 12:04:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 12:04:24 +0300 |
commit | 050a1451e9873a111acf6cdcce9fae6e88835045 (patch) | |
tree | 28be12d90781d2d1bb8ab24dc0bfd80fff85e673 /src | |
parent | f691bf5af5ecec4854eb749b081a11b97ee8d335 (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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc index d47d0b2777b..296d5245cd5 100644 --- a/src/node_process_methods.cc +++ b/src/node_process_methods.cc @@ -566,24 +566,24 @@ static void Initialize(Local<Object> target, // define various internal methods if (env->owns_process_state()) { SetMethod(context, target, "_debugProcess", DebugProcess); - SetMethod(context, target, "_debugEnd", DebugEnd); SetMethod(context, target, "abort", Abort); SetMethod(context, target, "causeSegfault", CauseSegfault); SetMethod(context, target, "chdir", Chdir); } SetMethod(context, target, "umask", Umask); - SetMethod(context, target, "_rawDebug", RawDebug); SetMethod(context, target, "memoryUsage", MemoryUsage); SetMethod(context, target, "rss", Rss); SetMethod(context, target, "cpuUsage", CPUUsage); SetMethod(context, target, "resourceUsage", ResourceUsage); + SetMethod(context, target, "_debugEnd", DebugEnd); SetMethod(context, target, "_getActiveRequestsInfo", GetActiveRequestsInfo); SetMethod(context, target, "_getActiveRequests", GetActiveRequests); SetMethod(context, target, "_getActiveHandles", GetActiveHandles); SetMethod(context, target, "_getActiveHandlesInfo", GetActiveHandlesInfo); SetMethod(context, target, "_kill", Kill); + SetMethod(context, target, "_rawDebug", RawDebug); SetMethodNoSideEffect(context, target, "cwd", Cwd); SetMethod(context, target, "dlopen", binding::DLOpen); |