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
{{ message }}
Repository navigation
Commit f88356b
Browse filesBrowse the repository at this point in the historyBrowse files
fs.mkdtempDisposableSync() and fsPromises.mkdtempDisposable() pass the
path of the new directory to path.resolve(), which only accepts
strings. When that path is a Buffer, because the prefix is a Buffer or
`encoding` is 'buffer', both throw ERR_INVALID_ARG_TYPE after the
directory has been created, and nothing removes it.
On Windows, resolve a Buffer path as UTF-8 so win32 semantics stay
intact. On POSIX, keep an absolute Buffer as created and prepend the
cwd captured at creation to a relative one, so bytes that are not
valid UTF-8 are preserved.
Fixes: #66593
Refs: #64397
Signed-off-by: Jiawen Geng <technicalcute@gmail.com>
Assisted-by: claude:opus-5.5
Assisted-by: grok-4.7
0 commit comments