Skip to content

test: ensure error function call on inspector disabled

If the process.config.variables.v8_enable_inspector is undefined or set to 0 and the sendInspectorCommand function is called, it should call the error function and should NOT call the callback function.

Test added to cover ./internal/util/inspector.js L4 https://coverage.nodejs.org/coverage-be346d9d32e0aacc/root/internal/util/inspector.js.html#L4

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows [commit guidelines]

Merge request reports

Loading