You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is always going to be a discrepency between fs.realpath() and fs.promises.realpath().
For some history fs.realpath() and fs.realpathSync() differ from native realpath and have behaviour oddities that were too breaking to change. At one point it was changed to call the native realpath but there were a number of issues that resulted in the implementation being reverted, see #7726.
Refs: #35403
Currently, the project has 2 outcomes for different
realpath
functions with empty string arguments:IMO, this should be standardized to
(A) Always throw
(B) Always return CWD
(C) Return CWD for non-
.native
calls, throw otherwiseThe text was updated successfully, but these errors were encountered: