Skip to content

sqlite3_web: Fix handling worker errors #276

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

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

simolus3
Copy link
Owner

It's not that constructing the Worker throws, an error event is emitted that is currently not handled (meaning that the initialization future never completes). This refactors that to throw an error that is then caught and handled.

@simolus3 simolus3 force-pushed the fix/handle-web-worker-errors branch from 1ab9b38 to cb7672b Compare January 20, 2025 07:54
@simolus3 simolus3 merged commit 7b123f3 into simolus3:main Jan 20, 2025
14 checks passed
@simolus3 simolus3 deleted the fix/handle-web-worker-errors branch January 20, 2025 10:13
@dickermoshe
Copy link

@simolus3 Seeing much more activity now.
Is working on drift now part of your day job?

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