Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: make some parameters optional in tracingChannel.traceCallback
Plus, add missing `position` parameter to CJS example.
  • Loading branch information
deokjinkim committed Jul 27, 2024
commit 149b8b6354cdbd7677131b341401c171abb91d5a
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