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: nodejs#11157
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
mykmelez authored and italoacasas committed Feb 14, 2017
1 parent 7f9b436 commit ce3dcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
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 ce3dcca

Please sign in to comment.