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
Fix SINGLE_FILE with wasm2js #9407
Conversation
Hi. Recompiling zee.js with this fix works (no more external dependency) but the resulting zee.js does not decompress data anymore. I'll check whether this is a separate issue when time permits. |
I confirm, with 1.38.43 + this patch:
|
@Beuc: that's odd, but I guess there's another issue then... if debugging it directly doesn't work, maybe running the test suite with that flag turned on would find some failure that is easier to debug. @buu700: not sure I follow, but if there's a network access it should be practical to find where it's coming from? |
There's no network access needed; The issue is that the fallback didn't seem to be working in my testing, which is odd because the code looks correct. I'll dig into this a bit more and see if I can figure out what's going on. |
This occurs with Also, with zee's nodejs-based test suite, whatever value for SINGLE_FILE and/or WASM and/or 0, I get: |
Whoops, sorry, you can disregard my comments here! I totally misunderstood the problem because I didn't realize that with mem init method 0 and wasm2js asm.js no longer had a separate mem init file. Turns out this last issue with upgrading to the new backend was just an issue on my end (hadn't fully handled that asm.js no longer initializes synchronously). |
@Beuc: |
The relevant test was disabled internally, which is why I missed it when I triaged all the disabled tests (I was looking for decorators etc.). Fix is pretty simple, the logic for when to use a mem init file was not aware of SINGLE_FILE. (There may be an even simpler way to rewrite that code, but let's wait until after fastcomp is removed for any major refactoring.) Fixes emscripten-core#9380
The relevant test was disabled internally, which is why I missed it when I triaged all the disabled tests (I was looking for decorators etc.).
Fix is pretty simple, the logic for when to use a mem init file was not aware of SINGLE_FILE. (There may be an even simpler way to rewrite that code, but let's wait until after fastcomp is removed for any major refactoring.)
Fixes #9380