Skip to content

Commit 21125f5

Browse files
committed
Add node: for internal modules
1 parent 6c82568 commit 21125f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

JavaScript/5-emitter.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 { EventEmitter } = require('events');
3+
const { EventEmitter } = require('node:events');
44

55
const DEFERRED_PENDING = 0;
66
const DEFERRED_RESOLVED = 1;

JavaScript/6-on.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 { EventEmitter } = require('events');
3+
const { EventEmitter } = require('node:events');
44

55
const DEFERRED_PENDING = 0;
66
const DEFERRED_RESOLVED = 1;

JavaScript/7-promise.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 { EventEmitter } = require('events');
3+
const { EventEmitter } = require('node:events');
44

55
const DEFERRED_PENDING = 0;
66
const DEFERRED_RESOLVED = 1;

0 commit comments

Comments
 (0)