Skip to content

Support --unhandled-rejections flag and rejectionHandled event #19874

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

pfgithub
Copy link
Contributor

@pfgithub pfgithub commented May 24, 2025

TODO:

  • 'strict'
  • 'warn'
    • fails to warn for -p 'Promise.reject("abc")', the nextTick never executes
  • 'warn-with-error-code'
  • why does hot.test.ts should work with sourcemap generation fail when the command has --unhandled-rejections=bun? the error's location is marked on Error() instead of on new

@robobun
Copy link

robobun commented May 24, 2025

Updated 3:07 PM PT - May 27th, 2025

@pfgithub, your commit ff96b0d has 5 failures in Build #17430:


🧪   To try this PR locally:

bunx bun-pr 19874

That installs a local version of the PR into your bun-19874 executable, so you can run:

bun-19874 --bun

@pfgithub pfgithub changed the title Support --unhandled-rejections flag Support --unhandled-rejections flag and rejectionHandled event May 24, 2025
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.

2 participants