8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bebcf0 commit be16cc9Copy full SHA for be16cc9
test/common/index.js
@@ -34,6 +34,14 @@ const {
34
hasIntl
35
} = process.binding('config');
36
37
+// Some tests assume a umask of 0o022 so set that up front. Tests that need a
38
+// different umask will set it themselves.
39
+//
40
+// process.umask() is not available in workers so we need to check for its
41
+// existence.
42
+if (process.umask)
43
+ process.umask(0o022);
44
+
45
const noop = () => {};
46
47
const hasCrypto = Boolean(process.versions.openssl);