| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 42b162b commit 25056f5
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1010,7 +1010,7 @@ async function lutimes(path, atime, mtime) { | |||
| 1010 | 1010 | async function realpath(path, options) { | |
| 1011 | 1011 | options = getOptions(options); | |
| 1012 | 1012 | path = getValidatedPath(path); | |
| 1013 | - return binding.realpath(path, options.encoding, kUsePromises); | ||
| 1013 | + return binding.realpath(pathModule.toNamespacedPath(path), options.encoding, kUsePromises); | ||
| 1014 | 1014 | } | |
| 1015 | 1015 | ||
| 1016 | 1016 | async function mkdtemp(prefix, options) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,4 +46,7 @@ fs.writeFile(fullPath, 'ok', common.mustSucceed(() => { | |||
| 46 | 46 | ||
| 47 | 47 | // Tests https://github.com/nodejs/node/issues/39721 | |
| 48 | 48 | fs.realpath.native(fullPath, common.mustSucceed()); | |
| 49 | + | ||
| 50 | + // Tests https://github.com/nodejs/node/issues/51031 | ||
| 51 | + fs.promises.realpath(fullPath).then(common.mustCall(), common.mustNotCall()); | ||
| 49 | 52 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments