Skip to content

Commit 792ce98

Browse files
lpincamarco-ippolito
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 c0fad18 commit 792ce98

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy