Skip to content

Commit

Permalink
fixup! lib: add util.getCallSite() API
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Aug 14, 2024
1 parent 201e50e commit 7c0422f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
added: REPLACEME
-->

* Returns: {CallSite\[]} An array of CallSite objects, read more at <https://v8.dev/docs/stack-trace-api#customizing-stack-traces>.
* Returns: {CallSite\[]} An array of CallSite objects.

Returns an array of V8 CallSite objects containing the stacktrace of
the caller function.
Expand Down
2 changes: 2 additions & 0 deletions tools/doc/type-parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const customTypesMap = {
'worker_threads.html#class-broadcastchannel-' +
'extends-eventtarget',

'CallSite': 'https://v8.dev/docs/stack-trace-api#customizing-stack-traces',

'Iterable':
`${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,
'Iterator':
Expand Down

0 comments on commit 7c0422f

Please sign in to comment.