From 1521adf5ed640832755e362abc64b32afd7dcc7d Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:37:23 -0700 Subject: fix(ext/node): Add missing node:fs and node:constants exports (#25568) Just a bunch of random fs constants --- ext/node/polyfills/_fs/_fs_constants.ts | 22 ++++++++++++++++++++++ ext/node/polyfills/constants.ts | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/_fs/_fs_constants.ts b/ext/node/polyfills/_fs/_fs_constants.ts index d44f4917e..0af75f072 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 691621edc..e5004039b 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, -- cgit v1.2.3