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');
44const assert = require ( 'assert' ) ;
55const {
66 Worker,
7+ threadId : parentThreadId ,
78} = require ( 'worker_threads' ) ;
89
910process . on ( 'worker' , common . mustCall ( ( { threadId } ) => {
10- assert . strictEqual ( threadId , 1 ) ;
11+ assert . strictEqual ( threadId , parentThreadId + 1 ) ;
1112} ) ) ;
1213
1314new Worker ( '' , { eval : true } ) ;
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ const customTypesMap = {
223223 'vm.SourceTextModule' : 'vm.html#vm_class_vm_sourcetextmodule' ,
224224
225225 'MessagePort' : 'worker_threads.html#worker_threads_class_messageport' ,
226+ 'Worker' : 'worker_threads.html#worker_threads_class_worker' ,
226227
227228 'X509Certificate' : 'crypto.html#crypto_class_x509certificate' ,
228229
You can’t perform that action at this time.
0 commit comments