diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-09-10 17:37:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-11 00:37:23 +0000 |
commit | 1521adf5ed640832755e362abc64b32afd7dcc7d (patch) | |
tree | 502168308b8ae7198fc2d59e017d168d9ae5f4d5 | |
parent | acd62786c24c38d8986475f0660d5205b55a9ad3 (diff) |
fix(ext/node): Add missing node:fs and node:constants exports (#25568)
Just a bunch of random fs constants
-rw-r--r-- | ext/node/polyfills/_fs/_fs_constants.ts | 22 | ||||
-rw-r--r-- | ext/node/polyfills/constants.ts | 22 |
2 files changed, 44 insertions, 0 deletions
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, |