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

[BUG] generated wasm is incompatible with WebWorkers #9

Closed
JasonGross opened this issue Nov 23, 2023 · 1 comment
Closed

[BUG] generated wasm is incompatible with WebWorkers #9

JasonGross opened this issue Nov 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JasonGross
Copy link
Contributor

The generated .js file contains

    function fetchRelative(src) {
      const url = new URL (src, document.currentScript?.src || document.baseURI).href
      return fetch(url)
    }

but document is not defined for WebWorkers. I want WebWorkers to prevent UI unresponsiveness for long-running function calls.

@vouillon
Copy link
Collaborator

That should be fixed. Thanks for the report!

vouillon added a commit that referenced this issue Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants