Skip to content

Commit

Permalink
src: update v8_platform.StartInspector signature
Browse files Browse the repository at this point in the history
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 e619725)

PR-URL: #11157
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
mykmelez authored and italoacasas committed Feb 6, 2017
1 parent c973548 commit 46180fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Expand Up @@ -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
}
Expand Down

0 comments on commit 46180fa

Please sign in to comment.