Skip to content

Commit a3a45cd

Browse files
authored
Stop using process.umask() (#28)
It's deprecated in the latest Node.js due to being insecure and it's not necessary to use it in the first place because the umask is automatically applied when creating the directory. Refs: nodejs/node#32321 Refs: isaacs/node-mkdirp#22
1 parent 0b9eae0 commit a3a45cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v8-compile-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class NativeCompileCache {
272272
//------------------------------------------------------------------------------
273273

274274
function mkdirpSync(p_) {
275-
_mkdirpSync(path.resolve(p_), parseInt('0777', 8) & ~process.umask());
275+
_mkdirpSync(path.resolve(p_), 0o777);
276276
}
277277

278278
function _mkdirpSync(p, mode) {

0 commit comments

Comments
 (0)