Skip to content

fix(jspi): JSPI should not override http calls in worker context #114

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 1 commit into from
May 14, 2025

Conversation

chrisdickinson
Copy link
Contributor

This fixes a bug where we'd use the system fetch inside a plugin run in a worker when JSPI was enabled, bypassing overrides of the fetch function.

This fixes a bug where we'd use the system `fetch` inside a plugin run in a
worker when JSPI was enabled, bypassing overrides of the `fetch` function.
@chrisdickinson chrisdickinson merged commit 8dd092f into main May 14, 2025
5 checks passed
@chrisdickinson chrisdickinson deleted the chris/20250514-jspi-do-not-intercept-in-worker branch May 14, 2025 19:39
Copy link
Member

@nilslice nilslice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch, and thanks for the quick fix!

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.

3 participants