Commit 2df7bc0 1 parent 3b93507 commit 2df7bc0 Copy full SHA for 2df7bc0
File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ import {
704
704
executionAsyncId ,
705
705
executionAsyncResource ,
706
706
createHook ,
707
- } from ' async_hooks' ;
707
+ } from ' node: async_hooks' ;
708
708
const sym = Symbol (' state' ); // Private symbol to avoid pollution
709
709
710
710
createHook ({
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ import {
374
374
setTimeout ,
375
375
setImmediate ,
376
376
setInterval ,
377
- } from ' timers/promises' ;
377
+ } from ' node: timers/promises' ;
378
378
```
379
379
380
380
``` cjs
@@ -404,7 +404,7 @@ added: v15.0.0
404
404
``` mjs
405
405
import {
406
406
setTimeout ,
407
- } from ' timers/promises' ;
407
+ } from ' node: timers/promises' ;
408
408
409
409
const res = await setTimeout (100 , ' result' );
410
410
@@ -438,7 +438,7 @@ added: v15.0.0
438
438
``` mjs
439
439
import {
440
440
setImmediate ,
441
- } from ' timers/promises' ;
441
+ } from ' node: timers/promises' ;
442
442
443
443
const res = await setImmediate (' result' );
444
444
@@ -479,7 +479,7 @@ or implicitly to keep the event loop alive.
479
479
``` mjs
480
480
import {
481
481
setInterval ,
482
- } from ' timers/promises' ;
482
+ } from ' node: timers/promises' ;
483
483
484
484
const interval = 100 ;
485
485
for await (const startTime of setInterval (interval, Date .now ())) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ operating system via a collection of POSIX-like functions.
17
17
18
18
``` mjs
19
19
import { readFile } from ' node:fs/promises' ;
20
- import { WASI } from ' wasi' ;
20
+ import { WASI } from ' node: wasi' ;
21
21
import { argv , env } from ' node:process' ;
22
22
23
23
const wasi = new WASI ({
@@ -40,7 +40,7 @@ wasi.start(instance);
40
40
` ` ` cjs
41
41
' use strict' ;
42
42
const { readFile } = require (' node:fs/promises' );
43
- const { WASI } = require (' wasi' );
43
+ const { WASI } = require (' node: wasi' );
44
44
const { argv , env } = require (' node:process' );
45
45
const { join } = require (' node:path' );
46
46
Original file line number Diff line number Diff line change @@ -1305,7 +1305,7 @@ Node.js event loop.
1305
1305
import {
1306
1306
Worker ,
1307
1307
isMainThread ,
1308
- } from ' worker_threads' ;
1308
+ } from ' node: worker_threads' ;
1309
1309
1310
1310
if (isMainThread) {
1311
1311
new Worker (new URL (import .meta.url));
You can’t perform that action at this time.
0 commit comments