Content-Length: 264878 | pFad | https://github.com/nodejs/node/commit/f1442d6eaf

35 test: do not use common.isMainThread · nodejs/node@f1442d6 · GitHub
Skip to content

Commit f1442d6

Browse files
lpincaaduh95
authored andcommitted
test: do not use common.isMainThread
`common.isMainThread` was removed in 8caa1dcee63b2c6fd7a9, use the `isMainThread` export of the `worker_threads` module instead. PR-URL: #56768 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 89ba3af commit f1442d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-require-resolve-opts-paths-relative.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
const common = require('../common');
44
const assert = require('assert');
55
const fixtures = require('../common/fixtures');
6+
const { isMainThread } = require('worker_threads');
67

7-
if (!common.isMainThread)
8+
if (!isMainThread)
89
common.skip('process.chdir is not available in Workers');
910

1011
const subdir = fixtures.path('module-require', 'relative', 'subdir');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nodejs/node/commit/f1442d6eaf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy