-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Behavior of realpath with an empty string argument #53635
Copy link
Copy link
Closed as not planned
Labels
discussIssues opened for discussion and feedback.Issues opened for discussion and feedback.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussion and feedback.Issues opened for discussion and feedback.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Refs: #35403
Currently, the project has 2 outcomes for different
realpathfunctions with empty string arguments:IMO, this should be standardized to
(A) Always throw
(B) Always return CWD
(C) Return CWD for non-
.nativecalls, throw otherwise