summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/fs/utils.mjs
diff options
context:
space:
mode:
authorMarvin Hagemeister <marvin@deno.com>2024-05-16 10:30:41 +0200
committerGitHub <noreply@github.com>2024-05-16 10:30:41 +0200
commit00e6d41a9d86c3c1a2e8807461bab127e52f0a10 (patch)
treee9b72ebf36509dc2cbfe1189640bc85b14dc8a46 /ext/node/polyfills/internal/fs/utils.mjs
parent88983fb3eb5a085f7d358a7a98d5c738a21b5d27 (diff)
fix(node): error when throwing `FS_EISDIR` (#23829)
The `EISDIR` error code is not available as a global variable, but must be accessed through the `osConstants.errno` object. Fixes https://github.com/denoland/deno/issues/23695
Diffstat (limited to 'ext/node/polyfills/internal/fs/utils.mjs')
-rw-r--r--ext/node/polyfills/internal/fs/utils.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/fs/utils.mjs b/ext/node/polyfills/internal/fs/utils.mjs
index 09169127d..a1823bb32 100644
--- a/ext/node/polyfills/internal/fs/utils.mjs
+++ b/ext/node/polyfills/internal/fs/utils.mjs
@@ -891,7 +891,7 @@ export const validateRmOptionsSync = hideStackFrames(
message: "is a directory",
path,
syscall: "rm",
- errno: EISDIR,
+ errno: osConstants.errno.EISDIR,
});
}
}