Skip to content

Commit 437a90c

Browse files
dnlupMylesBorins
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 09a97f2 commit 437a90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/trace_events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (!hasTracing)
1818

1919
const { CategorySet, getEnabledCategories } = internalBinding('trace_events');
2020
const { customInspectSymbol } = require('internal/util');
21-
const { format } = require('util');
21+
const { format } = require('internal/util/inspect');
2222

2323
const enabledTracingObjects = new Set();
2424

0 commit comments

Comments
 (0)