Refs: #35403
Currently, the project has 2 outcomes for different realpath functions with empty string arguments:
fs.realpathSync('')// Returns CWDawaitutil.promisify(fs.realpath)('')// Returns CWDawaitfs.promises.realpath('')// ENOENT Errorfs.realpathSync.native('')// ENOENT Errorawaitutil.promisify(fs.realpath.native)('')// ENOENT ErrorIMO, this should be standardized to
(A) Always throw
(B) Always return CWD
(C) Return CWD for non-.native calls, throw otherwise
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