From 149b8b6354cdbd7677131b341401c171abb91d5a Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Sat, 27 Jul 2024 22:38:25 +0900 Subject: [PATCH] doc: make some parameters optional in `tracingChannel.traceCallback` Plus, add missing `position` parameter to CJS example. --- doc/api/diagnostics_channel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 603d41d532bd5b..ff71a765472e5f 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -872,7 +872,7 @@ channels.tracePromise(async () => { }); ``` -#### `tracingChannel.traceCallback(fn, position, context, thisArg, ...args)` +#### `tracingChannel.traceCallback(fn[, position[, context[, thisArg[, ...args]]]])`