Repository navigation
--experimental-permission breaks REPL #48884
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Jul 22, 2023 Hi, thanks for reporting it. I'm aware of this behaviour.
- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Jul 24, 2023 Question is: should we make the internal calls to the inspector possible/privileged, or do like when the inspector is unavailable (this would just be a new condition in
)node/lib/internal/util/inspector.js
Lines 48 to 49 in a0f3ed8
const { hasInspector } = internalBinding('config'); if (!hasInspector) return onError(); I believe REPL shouldn't be available when the permission model is enabled. Please let me know if I'm wrong, but the REPL can create a new V8 isolate and bypass any permission in several ways. If we start supporting REPL, it would mean that we need to cover all those cases.
the REPL can create a new V8 isolate and bypass any permission in several ways
Can you elaborate?
the REPL can create a new V8 isolate and bypass any permission in several ways
Can you elaborate?
Basically, the same as 34d92ed fixes. I don't have a reproducible example because I'm not sure if that's possible. I'm just wondering if REPL can create a new V8 isolate, it means it could create without the experimental permission rules, right?
Anyway, I created the #48920.
- added a commit that references this issue
on Jul 27, 2023 - added a commit that references this issue
on Jul 27, 2023 - addedpermissionIssues and PRs related to the Permission Model.Issues and PRs related to the Permission Model.
on Aug 10, 2023 - added 2 commits that reference this issue
on Aug 14, 2023 - added a commit that references this issue
on Aug 14, 2023 - added 2 commits that reference this issue
on Aug 15, 2023
Version
20.5.0
Platform
any
Subsystem
permission model
What steps will reproduce the bug?
Open a REPL and start typing:
How 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:
Additional information
Likely side effect of 34d92ed.