Browse Source

src: fix --without-inspector build

`use_inspector` is not available if `HAVE_INSPECTOR` is false.
Before this commit, one usage of it would show up as an undeclared
identifier (introduced in a766ebf).

PR-URL: https://github.com/nodejs/node/pull/7258
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v7.x
Anna Henningsen 9 years ago
parent
commit
0c73c9fece
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      src/node.cc

4
src/node.cc

@ -3359,11 +3359,15 @@ static bool ParseDebugOpt(const char* arg) {
PrintHelp();
exit(12);
}
#if HAVE_INSPECTOR
if (use_inspector) {
inspector_port = port_int;
} else {
#endif
debug_port = port_int;
#if HAVE_INSPECTOR
}
#endif
}
return true;

Loading…
Cancel
Save