mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: require globals instead of using the global proxy
In addition, use process.stderr instead of console.error when there is no need to swallow the error. PR-URL: https://github.com/nodejs/node/pull/27112 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
7938238b31
commit
a38e9c438a
17 changed files with 42 additions and 24 deletions
|
@ -47,6 +47,7 @@ const {
|
|||
ERR_INVALID_PERFORMANCE_MARK
|
||||
} = require('internal/errors').codes;
|
||||
|
||||
const { setImmediate } = require('timers');
|
||||
const kHandle = Symbol('handle');
|
||||
const kMap = Symbol('map');
|
||||
const kCallback = Symbol('callback');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue