Skip to content

Commit d7bcad3

Browse files
authored
Update worker_threads.md
1 parent 3d8d62c commit d7bcad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/worker_threads.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ and what kind of JavaScript values can be successfully transported through
13851385
the thread barrier.
13861386
13871387
```mjs
1388-
import assert from 'node:assert/strict';
1388+
import assert from 'node:assert';
13891389
import {
13901390
Worker, MessageChannel, MessagePort, isMainThread, parentPort,
13911391
} from 'node:worker_threads';
@@ -1408,7 +1408,7 @@ if (isMainThread) {
14081408
```cjs
14091409
'use strict';
14101410

1411-
const assert = require('node:assert/strict');
1411+
const assert = require('node:assert');
14121412
const {
14131413
Worker, MessageChannel, MessagePort, isMainThread, parentPort,
14141414
} = require('node:worker_threads');

0 commit comments

Comments
 (0)