Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node): add util.getCallSites #28546

Merged
merged 4 commits into from
Mar 20, 2025

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Mar 19, 2025

This PR adds getCallSites API to "node:util".

This unblocks #28318. Currently the task is blocked by the unavailability of util.getCallSites because it's used in test/common/index.js

@kt3k kt3k force-pushed the fix-ext-node-add-get-call-sites branch from aea7df5 to 23060da Compare March 19, 2025 05:55
@kt3k kt3k force-pushed the fix-ext-node-add-get-call-sites branch from 23060da to 573f601 Compare March 19, 2025 06:36
Comment on lines 370 to 371
// deno-lint-ignore prefer-primordials
Error.captureStackTrace(target, getCallSites);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorCaptureStackTrace should be in primordials.

ErrorCaptureStackTrace,

Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, would switch to primordials like @petamoriken suggested. Otherwise looks good!

@ry ry enabled auto-merge (squash) March 20, 2025 21:02
@ry ry merged commit 6420e50 into denoland:main Mar 20, 2025
18 checks passed
@kt3k kt3k deleted the fix-ext-node-add-get-call-sites branch March 21, 2025 01:38
ry pushed a commit that referenced this pull request Mar 21, 2025
This PR adds
[getCallSites](https://nodejs.org/api/util.html#utilgetcallsitesframecount-options)
API to "node:util".

This unblocks #28318. Currently
the task is blocked by the unavailability of `util.getCallSites` because
it's used in
[`test/common/index.js`](https://github.com/denoland/node_test/blob/8846b5392f4ebd3d4e995b9bed61c23c0192d806/test/common/index.js#L31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants