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

Add support for Bun as well as existing runtimes #20

Merged
merged 4 commits into from
Aug 12, 2023

Conversation

BenBeattieHood
Copy link
Contributor

@BenBeattieHood BenBeattieHood commented Jul 31, 2023

In Bun, new Error().stack currently returns a string rather than the mutation from prepareStackTrace. This fix avoids this issue by storing the callstack in a variable rather than mutating the return type. This possibly helps with async issues using this code too.

BenBeattieHood and others added 2 commits August 10, 2023 10:25
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@sindresorhus sindresorhus merged commit 5bb4f50 into sindresorhus:main Aug 12, 2023
AaronDewes added a commit to AaronDewes/callsites that referenced this pull request Sep 30, 2023
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.

None yet

2 participants