From 91e5392dcc53e328f46edbeefaf429e62c815644 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Tue, 10 Sep 2024 16:53:45 -0700 Subject: [PATCH] Add missing constants exports --- ext/node/polyfills/_fs/_fs_constants.ts | 22 ++++++++++++++++++++++ ext/node/polyfills/constants.ts | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/ext/node/polyfills/_fs/_fs_constants.ts b/ext/node/polyfills/_fs/_fs_constants.ts index d44f4917e61862..0af75f072cf5f6 100644 --- a/ext/node/polyfills/_fs/_fs_constants.ts +++ b/ext/node/polyfills/_fs/_fs_constants.ts @@ -12,6 +12,28 @@ export const { S_IXUSR, S_IRGRP, S_IWGRP, + S_IFBLK, + S_IFCHR, + S_IFDIR, + S_IFIFO, + S_IFLNK, + S_IFMT, + S_IFREG, + S_IFSOCK, + S_IRWXG, + S_IRWXO, + S_IRWXU, + UV_DIRENT_BLOCK, + UV_DIRENT_CHAR, + UV_DIRENT_DIR, + UV_DIRENT_FIFO, + UV_DIRENT_FILE, + UV_DIRENT_LINK, + UV_DIRENT_SOCKET, + UV_DIRENT_UNKNOWN, + UV_FS_O_FILEMAP, + UV_FS_SYMLINK_DIR, + UV_FS_SYMLINK_JUNCTION, S_IXGRP, S_IROTH, S_IWOTH, diff --git a/ext/node/polyfills/constants.ts b/ext/node/polyfills/constants.ts index 691621edc4c609..e5004039b1e60f 100644 --- a/ext/node/polyfills/constants.ts +++ b/ext/node/polyfills/constants.ts @@ -51,6 +51,28 @@ export const { UV_FS_COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE, UV_FS_COPYFILE_FICLONE_FORCE, + S_IFBLK, + S_IFCHR, + S_IFDIR, + S_IFIFO, + S_IFLNK, + S_IFMT, + S_IFREG, + S_IFSOCK, + S_IRWXG, + S_IRWXO, + S_IRWXU, + UV_DIRENT_BLOCK, + UV_DIRENT_CHAR, + UV_DIRENT_DIR, + UV_DIRENT_FIFO, + UV_DIRENT_FILE, + UV_DIRENT_LINK, + UV_DIRENT_SOCKET, + UV_DIRENT_UNKNOWN, + UV_FS_O_FILEMAP, + UV_FS_SYMLINK_DIR, + UV_FS_SYMLINK_JUNCTION, } = fsConstants; export const { RTLD_DEEPBIND,