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 crash on aborted timer #12348

Merged
merged 8 commits into from
Jul 4, 2024

Conversation

vadzim
Copy link
Contributor

@vadzim vadzim commented Jul 4, 2024

What does this PR do?

fixes #12347

return the promise returned by .finally() instead of bare returnValue to allow the user code to catch emitted abort error

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests

  • I included a test for the new code, or existing tests cover it
  • I ran my tests locally and they pass (bun-debug test test-file-name.test)

@vadzim vadzim force-pushed the fix-crash-on-aborted-timer branch from a979590 to 77c96e7 Compare July 4, 2024 18:55
@vadzim vadzim force-pushed the fix-crash-on-aborted-timer branch from 77c96e7 to 702eab9 Compare July 4, 2024 18:57
Copy link
Contributor

github-actions bot commented Jul 4, 2024

@vadzim, your commit has failing tests :(

💪 1 failing tests Darwin AARCH64

  • test/js/web/workers/worker.test.ts 1 failing

🪟💻 4 failing tests Windows x64 baseline

  • test/cli/install/registry/bun-install-registry.test.ts 1 failing
  • test/cli/install/registry/bun-install-windowsshim.test.ts code 1
  • test/integration/next-pages/test/dev-server.test.ts 1 failing
  • test/js/node/child_process/child_process.test.ts 1 failing

🪟💻 3 failing tests Windows x64

  • test/cli/install/registry/bun-install-registry.test.ts 2 failing
  • test/cli/install/registry/bun-install-windowsshim.test.ts code 1
  • test/js/node/child_process/child_process.test.ts 1 failing

View logs

@Jarred-Sumner Jarred-Sumner merged commit 4f3ef07 into oven-sh:main Jul 4, 2024
48 of 52 checks passed
@Jarred-Sumner
Copy link
Collaborator

Thank you

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.

timers/promises.setTimeout throws globally on aborted signal
2 participants