mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00: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:
parent
b2b8741a7e
commit
a89451409e
@ -19,7 +19,7 @@ if (!hasTracing || !ownsProcessState)
|
||||
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user