Skip to content

Commit

Permalink
src: remove process._debugPause()
Browse files Browse the repository at this point in the history
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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
  • Loading branch information
bnoordhuis committed Nov 20, 2017
1 parent f526deb commit 804eb3c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
#if NODE_USE_V8_PLATFORM
#include "libplatform/libplatform.h"
#endif // NODE_USE_V8_PLATFORM
#include "v8-debug.h"
#include "v8-profiler.h"
#include "zlib.h"

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


static void DebugProcess(const FunctionCallbackInfo<Value>& args);
static void DebugPause(const FunctionCallbackInfo<Value>& args);
static void DebugEnd(const FunctionCallbackInfo<Value>& args);

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

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

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


static void DebugPause(const FunctionCallbackInfo<Value>& args) {
v8::Debug::DebugBreak(args.GetIsolate());
}


static void DebugEnd(const FunctionCallbackInfo<Value>& args) {
#if HAVE_INSPECTOR
Environment* env = Environment::GetCurrent(args);
Expand Down

0 comments on commit 804eb3c

Please sign in to comment.