Skip to content

fix(vidstack): resolve timed promise without rejection - #1810

Merged
mihar-22 merged 1 commit into
mainfrom
fix/1781-timed-promise-resolve
May 25, 2026
Merged

fix(vidstack): resolve timed promise without rejection#1810
mihar-22 merged 1 commit into
mainfrom
fix/1781-timed-promise-resolve

Conversation

@mihar-22

Copy link
Copy Markdown
Member

Summary

  • Resolve timedPromise when the timeout callback returns void.
  • Reject with the returned callback value when a rejection value is provided.
  • Add focused fake-timer coverage for the resolve and reject paths.

Fixes #1781

Validation

  • pnpm --filter vidstack exec vitest --run src/utils/promise.test.ts - passed, 1 file / 2 tests
  • pnpm --filter vidstack typecheck - passed

@mihar-22 mihar-22 changed the title fix: resolve timed promise without rejection fix(vidstack): resolve timed promise without rejection May 25, 2026
@mihar-22
mihar-22 marked this pull request as ready for review May 25, 2026 04:55
@mihar-22
mihar-22 merged commit affb7ce into main May 25, 2026
1 check passed
@mihar-22
mihar-22 deleted the fix/1781-timed-promise-resolve branch May 25, 2026 04:57
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.

Bug: timedPromise never resolves, hangs forever

1 participant