Skip to content

Commit bc5c05a

Browse files
committed
Add node: for internal modules
1 parent 4fbaf54 commit bc5c05a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

JavaScript/7-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44
const { readFile } = fs.promises;
55

66
(async () => {

JavaScript/8-for-await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44

55
(async () => {
66
const stream = fs.createReadStream('./8-for-await.js', 'utf8');

JavaScript/9-thenable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44

55
class Thenable {
66
constructor() {

0 commit comments

Comments
 (0)