| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3bebcf0 commit be16cc9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,14 @@ const { | |||
| 34 | 34 | hasIntl | |
| 35 | 35 | } = process.binding('config'); | |
| 36 | 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 | + | ||
| 37 | 45 | const noop = () => {}; | |
| 38 | 46 | ||
| 39 | 47 | const hasCrypto = Boolean(process.versions.openssl); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments