-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove faulty location.href
fallback and disable --split-linked-modules
by default
#3279
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
Conversation
fd0ab20
to
eef8075
Compare
I'm sorry for the trouble my PR caused. Can Edit: This may not work if relative paths are still resolved to the original URL and not the |
eef8075
to
8765faf
Compare
No, because relative paths get resolved by |
Maybe I should not have hidden this in an edit, but have you seen my suggestion to use https://github.com/chemicstry/wasm_thread/blob/main/src/script_path.js? |
Just tried it and it does work indeed, but I don't think wasm-bindgen should use this, it isn't exactly stable or standardized, to say the least, it's a pretty hacky workaround. |
I looked it up and Error.stack is indeed undefined by the ES standard. |
This removes the faulty fallback to
location.href
on the no-modules target.Additionally it disables
--split-linked-modules
by default when usingwasm-bindgen-cli-support
, which was probably an oversight. In return I added a new environment variableWASM_BINDGEN_SPLIT_LINKED_MODULES
forwasm-bindgen-test-runner
to enable it for whomever requires it.Fixes #3277.