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: add getScriptNameOrSourceURL to CallSite prototype #865

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Aug 5, 2024

Both Chrome and Node have a getScriptNameOrSourceUrl() method on the CallSite prototype. We didn't have that which causes an error in vitest, see denoland/deno#24898

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

This is not be error prototype. It's the v8 callsite object prototype. Please update the commit message

Implementation looks good though

@marvinhagemeister marvinhagemeister changed the title fix: add getScriptNameOrSourceURL to Error prototype fix: add getScriptNameOrSourceURL to CallSite prototype Aug 6, 2024
@marvinhagemeister
Copy link
Contributor Author

Oops good point. Updated the commit message and PR here to refer to the CallSite prototype instead.

@marvinhagemeister marvinhagemeister merged commit 5766495 into main Aug 6, 2024
18 checks passed
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