Browse Source

src: update v8_platform.StartInspector signature

The call signature of v8_platform.StartInspector needs to be the same
whether or not NODE_USE_V8_PLATFORM, otherwise Node will fail to compile
if HAVE_INSPECTOR and !NODE_USE_V8_PLATFORM.

(cherry picked from commit e619725faada46e2949faee17a4c791d5c7497c1)

PR-URL: https://github.com/nodejs/node/pull/11157
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v7.x
Myk Melez 8 years ago
committed by Italo A. Casas
parent
commit
ce3dcca619
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 2
      src/node.cc

2
src/node.cc

@ -227,7 +227,7 @@ static struct {
void PumpMessageLoop(Isolate* isolate) {}
void Dispose() {}
bool StartInspector(Environment *env, const char* script_path,
int port, bool wait) {
const node::DebugOptions& options) {
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");
return false; // make compiler happy
}

Loading…
Cancel
Save