Skip to content

Commit 804eb3c

Browse files
committed
src: remove process._debugPause()
This method is undocumented and depends on a V8 API that is slated for removal. The inspector and node-inspect don't use it and I could find no third-party code that depends on it. Remove it. PR-URL: #17060 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Timothy Gu <[email protected]>
1 parent f526deb commit 804eb3c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/node.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#if NODE_USE_V8_PLATFORM
6868
#include "libplatform/libplatform.h"
6969
#endif // NODE_USE_V8_PLATFORM
70-
#include "v8-debug.h"
7170
#include "v8-profiler.h"
7271
#include "zlib.h"
7372

@@ -2931,7 +2930,6 @@ static void DebugPortSetter(Local<Name> property,
29312930

29322931

29332932
static void DebugProcess(const FunctionCallbackInfo<Value>& args);
2934-
static void DebugPause(const FunctionCallbackInfo<Value>& args);
29352933
static void DebugEnd(const FunctionCallbackInfo<Value>& args);
29362934

29372935
namespace {
@@ -3363,7 +3361,6 @@ void SetupProcessObject(Environment* env,
33633361
env->SetMethod(process, "_kill", Kill);
33643362

33653363
env->SetMethod(process, "_debugProcess", DebugProcess);
3366-
env->SetMethod(process, "_debugPause", DebugPause);
33673364
env->SetMethod(process, "_debugEnd", DebugEnd);
33683365

33693366
env->SetMethod(process, "hrtime", Hrtime);
@@ -4091,11 +4088,6 @@ static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
40914088
#endif // _WIN32
40924089

40934090

4094-
static void DebugPause(const FunctionCallbackInfo<Value>& args) {
4095-
v8::Debug::DebugBreak(args.GetIsolate());
4096-
}
4097-
4098-
40994091
static void DebugEnd(const FunctionCallbackInfo<Value>& args) {
41004092
#if HAVE_INSPECTOR
41014093
Environment* env = Environment::GetCurrent(args);

0 commit comments

Comments
 (0)