-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.permissionIssues and PRs related to the Permission ModelIssues and PRs related to the Permission ModelreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Version
20.5.0
Platform
any
Subsystem
permission model
What steps will reproduce the bug?
Open a REPL and start typing:
$ node --experimental-permission --allow-fs-read=/
> fHow often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
No error.
What do you see instead?
Fatal error:
node:internal/readline/emitKeypressEvents:74
throw err;
^
Error: Access to this API has been restricted
at Session.connect (node:inspector:68:7)
at sendInspectorCommand (node:internal/util/inspector:52:11)
at getGlobalLexicalScopeNames (node:repl:1262:10)
at REPLServer.complete (node:repl:1493:26)
at REPLServer.completer (node:repl:783:5)
at showCompletionPreview (node:internal/repl/utils:230:10)
at showPreview (node:internal/repl/utils:384:7)
at REPLServer.self._ttyWrite (node:repl:1020:9)
at ReadStream.onkeypress (node:internal/readline/interface:264:20)
at ReadStream.emit (node:events:514:28) {
code: 'ERR_ACCESS_DENIED',
permission: 'Inspector',
resource: 'Connect'
}
Node.js v20.5.0
Additional information
Likely side effect of 34d92ed.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.permissionIssues and PRs related to the Permission ModelIssues and PRs related to the Permission ModelreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.