summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/process.ts')
-rw-r--r--ext/node/polyfills/process.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts
index 20399bdf9..a8da35f70 100644
--- a/ext/node/polyfills/process.ts
+++ b/ext/node/polyfills/process.ts
@@ -97,6 +97,15 @@ export const exit = (code?: number | string) => {
process.reallyExit(process.exitCode || 0);
};
+/** https://nodejs.org/api/process.html#processumaskmask */
+export const umask = () => {
+ // Always return the system default umask value.
+ // We don't use Deno.umask here because it has a race
+ // condition bug.
+ // See https://github.com/denoland/deno_std/issues/1893#issuecomment-1032897779
+ return 0o22;
+};
+
export const abort = () => {
op_process_abort();
};