From a3a45cdadb1f6f0709c1a9c31cc4e7a27cf1e6c6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 30 May 2020 22:15:24 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/32321 Refs: https://github.com/isaacs/node-mkdirp/issues/22 --- v8-compile-cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v8-compile-cache.js b/v8-compile-cache.js index bd755d6..69f0536 100644 --- a/v8-compile-cache.js +++ b/v8-compile-cache.js @@ -272,7 +272,7 @@ class NativeCompileCache { //------------------------------------------------------------------------------ function mkdirpSync(p_) { - _mkdirpSync(path.resolve(p_), parseInt('0777', 8) & ~process.umask()); + _mkdirpSync(path.resolve(p_), 0o777); } function _mkdirpSync(p, mode) {