Skip to content

lib: add util.getCallSite() API#54380

Merged
nodejs-github-bot merged 9 commits intonodejs:mainfrom
RafaelGSS:add-getCallSite
Sep 4, 2024
Merged

lib: add util.getCallSite() API#54380
nodejs-github-bot merged 9 commits intonodejs:mainfrom
RafaelGSS:add-getCallSite

Conversation

@RafaelGSS
Copy link
Copy Markdown
Member

This pull request introduces a new API method, util.getCallSite(), which provides a way to capture and inspect the call stack within a Node.js application. The method returns an array of CallSite objects, so developers can retrieve information about each function call in the stack trace.

Previously, they could reach the same behaviour by using Error.prepareStackTrace but, this API isn't that friendly IMO.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.