| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c0fad18 commit 792ce98
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,9 @@ | |||
| 3 | 3 | const common = require('../common'); | |
| 4 | 4 | const assert = require('assert'); | |
| 5 | 5 | const fixtures = require('../common/fixtures'); | |
| 6 | + const { isMainThread } = require('worker_threads'); | ||
| 6 | 7 | ||
| 7 | - if (!common.isMainThread) | ||
| 8 | + if (!isMainThread) | ||
| 8 | 9 | common.skip('process.chdir is not available in Workers'); | |
| 9 | 10 | ||
| 10 | 11 | const subdir = fixtures.path('module-require', 'relative', 'subdir'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments