fix(ext/node): fs.rename and fs.renameSync compatibility (#30245)

This commit is contained in:
Daniel Osvaldo R 2025-07-31 21:24:59 +07:00 committed by GitHub
parent eef8835e36
commit af55e069ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 120 additions and 17 deletions

View file

@ -2666,6 +2666,7 @@ export class ERR_INVALID_STATE extends NodeError {
interface UvExceptionContext {
syscall: string;
path?: string;
dest?: string;
}
export function denoErrorToNodeError(e: Error, ctx: UvExceptionContext) {
const errno = extractOsErrorNumberFromErrorMessage(e);