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:
Joyee Cheung
2019-04-06 05:56:00 +08:00
parent 7938238b31
commit a38e9c438a
17 changed files with 42 additions and 24 deletions

View File

@@ -22,6 +22,7 @@
'use strict';
const { Math } = primordials;
const { setImmediate } = require('timers');
const { getOptionValue } = require('internal/options');