Skip to content

Commit

Permalink
doc: make some parameters optional in tracingChannel.traceCallback
Browse files Browse the repository at this point in the history
Plus, add missing `position` parameter to CJS example.

PR-URL: #54068
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
  • Loading branch information
deokjinkim authored and targos committed Aug 14, 2024
1 parent b85b13b commit 55f8ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/diagnostics_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ channels.tracePromise(async () => {
});
```

#### `tracingChannel.traceCallback(fn, position, context, thisArg, ...args)`
#### `tracingChannel.traceCallback(fn[, position[, context[, thisArg[, ...args]]]])`

<!-- YAML
added:
Expand Down Expand Up @@ -927,7 +927,7 @@ const channels = diagnostics_channel.tracingChannel('my-channel');
channels.traceCallback((arg1, callback) => {
// Do something
callback(null, 'result');
}, {
}, 1, {
some: 'thing',
}, thisArg, arg1, callback);
```
Expand Down

0 comments on commit 55f8ac3

Please sign in to comment.