From 07bde054f3b7ff09527cbc019bf1d847b31ba833 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` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plus, add missing `position` parameter to CJS example. PR-URL: https://github.com/nodejs/node/pull/54068 Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Ulises Gascón Reviewed-By: Jake Yuesong Li --- 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 39be4115bb4315..eb59fa932af9ca 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -863,7 +863,7 @@ channels.tracePromise(async () => { }); ``` -#### `tracingChannel.traceCallback(fn, position, context, thisArg, ...args)` +#### `tracingChannel.traceCallback(fn[, position[, context[, thisArg[, ...args]]]])`