Skip to content

Commit 0f9a779

Browse files
dnluptargos
authored andcommitted
trace_events: remove usage of require('util')
Use `require('internal/util/inspect').format` instead of `require('util').format`. Refs: #26546 PR-URL: #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>
1 parent a2d2756 commit 0f9a779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/trace_events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (!hasTracing || !ownsProcessState)
1919

2020
const { CategorySet, getEnabledCategories } = internalBinding('trace_events');
2121
const { customInspectSymbol } = require('internal/util');
22-
const { format } = require('util');
22+
const { format } = require('internal/util/inspect');
2323

2424
const enabledTracingObjects = new Set();
2525

0 commit comments

Comments
 (0)