mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
trace_events: remove usage of require('util')
Use `require('internal/util/inspect').format` instead of
`require('util').format`.
Refs: https://github.com/nodejs/node/issues/26546
PR-URL: https://github.com/nodejs/node/pull/26822
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
1 parent
09a97f29df
commit
437a90cfe4
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ if (!hasTracing)
|
||||
|
||||
const { CategorySet, getEnabledCategories } = internalBinding('trace_events');
|
||||
const { customInspectSymbol } = require('internal/util');
|
||||
const { format } = require('util');
|
||||
const { format } = require('internal/util/inspect');
|
||||
|
||||
const enabledTracingObjects = new Set();
|
||||
|
||||
|
||||
Reference in new issue
Block a user