-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolworkerIssues and PRs related to Worker support.Issues and PRs related to Worker support.
Description
The recommended way to sniff for "inspector" support without using process.binding()
has been to use Module.builtinModules
. However, when in a worker the Module.builtinModules
array still contains "inspector" resulting in an error being thrown when the module is required.
Lines 17 to 18 in e570ae7
if (!Connection || !require('internal/worker').isMainThread) | |
throw new ERR_INSPECTOR_NOT_AVAILABLE(); |
Metadata
Metadata
Assignees
Labels
inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolworkerIssues and PRs related to Worker support.Issues and PRs related to Worker support.