mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
fix(ext/node): export process.umask (#22348)
Fixes https://github.com/denoland/deno/issues/20914
This commit is contained in:
parent
92f6188253
commit
492a9fbb91
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue