0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
dnlup b51a546488 lib: reduce usage of require('util')
Replace `require('util').inspect` and `require('util').format` with
`require('util/internal/inspect').inspect` and
`require('util/internal/inspect').format` in `lib/internal/errors.js`.

PR-URL: https://github.com/nodejs/node/pull/26782
Refs: https://github.com/nodejs/node/issues/26546
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-26 06:23:23 +01:00
..
assert assert: reduce internal usage of public require of util 2019-03-24 18:15:23 +08:00
bootstrap process: load internal/async_hooks before inspector hooks registration 2019-03-23 15:02:23 -04:00
cluster lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
console lib: remove usage of require('util') 2019-03-25 00:17:52 +01:00
crypto crypto: add support for x25119 and x448 KeyObjects 2019-03-25 01:40:54 +01:00
dns dns: use IDNA 2008 to encode non-ascii hostnames 2019-01-28 20:42:44 +01:00
fs fs: reduce usage of require('util') 2019-03-26 09:08:37 +08:00
http2 tools: enable getter-return lint rule 2019-03-25 20:02:10 -04:00
main worker: remove usage of require('util') in worker_thread.js 2019-03-24 18:07:37 +08:00
modules module: remove usage of require('util') in esm/translators.js 2019-03-25 00:34:17 +01:00
per_context src,lib: make DOMException available in all Contexts 2019-03-15 16:54:19 +01:00
policy policy: reduce internal usage of public util for manifest.js 2019-03-23 13:25:42 +08:00
process process: make stdout and stderr emit 'close' on destroy 2019-03-25 12:29:16 +01:00
repl repl: remove usage of require('util') in repl/history 2019-03-23 00:16:02 +08:00
streams stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
test src: replace heap_utils.createHeapSnapshot with v8.getHeapSnapshot 2019-03-19 01:04:51 +08:00
util lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
vm lib: save primordials during bootstrap and use it in builtins 2019-02-02 05:40:47 +08:00
worker worker: remove usage of require('util') 2019-03-23 00:09:48 +08:00
assert.js assert: add internal assert.fail() 2019-02-14 00:00:50 +01:00
async_hooks.js process: load internal/async_hooks before inspector hooks registration 2019-03-23 15:02:23 -04:00
buffer.js buffer: move Buffer prototype wiring into internal/buffer.js 2019-01-10 16:59:27 +08:00
child_process.js lib: remove usage of require('util') 2019-03-22 00:07:32 +08:00
cli_table.js lib,test: remove lib/internal/test/unicode.js 2019-01-03 10:25:59 -08:00
constants.js
dgram.js
dtrace.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
encoding.js lib: remove usage of require('util') 2019-03-25 00:20:03 +01:00
error-serdes.js lib: lazy load v8 in error-serdes 2019-03-19 07:59:47 +01:00
errors.js lib: reduce usage of require('util') 2019-03-26 06:23:23 +01:00
fixed_queue.js
freelist.js
freeze_intrinsics.js bootstrap: experimental --frozen-intrinsics flag 2019-03-04 16:34:33 +02:00
http.js http,https: protect against slow headers attack 2018-11-28 11:36:34 +11:00
idna.js lib: convert legacy process.binding to internalBinding 2019-02-18 07:21:48 +01:00
inspector_async_hook.js process: register the inspector async hooks in bootstrap/node.js 2019-01-16 16:19:22 +08:00
js_stream_socket.js stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
linkedlist.js
net.js fs: make process.binding('fs') internal 2018-11-16 21:56:29 +09:00
options.js
priority_queue.js timers: fix priority queue removeAt 2018-11-14 20:38:00 -08:00
profiler.js src: refactor coverage connection 2019-03-12 07:03:53 +08:00
querystring.js lib: move encodeStr function to internal for reusable 2018-11-20 18:24:02 -08:00
readline.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
readme.md
repl.js repl: fix terminal default setting 2019-03-25 16:28:07 +01:00
socket_list.js lib: convert to arrow function 2018-11-26 20:34:32 +05:30
stream_base_commons.js tls: support TLSv1.3 2019-03-20 07:48:25 -07:00
timers.js timers: move big impl comment to /internal/ 2019-03-20 17:11:32 -07:00
tls.js
trace_events_async_hooks.js process: simplify the setup of async hooks trace events 2019-02-21 10:47:28 +08:00
tty.js repl: fix terminal default setting 2019-03-25 16:28:07 +01:00
url.js url: remove usage of require('util') 2019-03-24 22:09:47 +08:00
util.js util: extract uncurryThis function for reuse 2019-03-21 23:07:48 +01:00
v8_prof_polyfill.js
v8_prof_processor.js lib: convert to Arrow Function 2018-11-28 14:59:07 +05:30
validators.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
worker.js lib: explicitly initialize debuglog during bootstrap 2019-03-08 13:57:38 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.