Skip to content

NODE_V8_COVERAGE does not fail gracefully when inspector is disabled #29542

Closed
@addaleax

Description

@addaleax
  • Version: master
  • Subsystem: inspector
$ ./configure --without-intl
$ make -j4
$ NODE_V8_COVERAGE=/tmp/foo ./node -p 42

currently yields

internal/bootstrap/loaders.js:131
      mod = bindingObj[module] = getInternalBinding(module);
                                 ^

Error: No such module: profiler
    at internalBinding (internal/bootstrap/loaders.js:131:34)
    at setupCoverageHooks (internal/bootstrap/pre_execution.js:122:3)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:21:7)

I feel like this should a) print some kind of helpful message and b) maybe only print a warning or so instead of failing to execute the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coverageIssues and PRs related to native coverage support.good first issueIssues that are suitable for first-time contributors.inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions