File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ const common = require('../common');
4
4
const assert = require ( 'assert' ) ;
5
5
const {
6
6
Worker,
7
+ threadId : parentThreadId ,
7
8
} = require ( 'worker_threads' ) ;
8
9
9
10
process . on ( 'worker' , common . mustCall ( ( { threadId } ) => {
10
- assert . strictEqual ( threadId , 1 ) ;
11
+ assert . strictEqual ( threadId , parentThreadId + 1 ) ;
11
12
} ) ) ;
12
13
13
14
new Worker ( '' , { eval : true } ) ;
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ const customTypesMap = {
223
223
'vm.SourceTextModule' : 'vm.html#vm_class_vm_sourcetextmodule' ,
224
224
225
225
'MessagePort' : 'worker_threads.html#worker_threads_class_messageport' ,
226
+ 'Worker' : 'worker_threads.html#worker_threads_class_worker' ,
226
227
227
228
'X509Certificate' : 'crypto.html#crypto_class_x509certificate' ,
228
229
You can’t perform that action at this time.
0 commit comments