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>
v6.x
Anna Henningsen 9 years ago
committed by Jeremiah Senkpiel
parent
commit
38d36e3285
  1. 4
      src/node.cc

4
src/node.cc

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

Loading…
Cancel
Save