Skip to content

Commit cd4ed49

Browse files
deokjinkimaduh95
andauthored
Update doc/api/worker_threads.md
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 0bf31ad commit cd4ed49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ worker.on('online', async () => {
20342034
const { Worker } = require('node:worker_threads');
20352035
20362036
const w = new Worker(`
2037-
const { parentPort } = require('worker_threads');
2037+
const { parentPort } = require('node:worker_threads');
20382038
parentPort.on('message', () => {});
20392039
`, { eval: true });
20402040

0 commit comments

Comments
 (0)