You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incase of asm.js, missing functions get "linked" to functions that call abort (please correct me if I am wrong). This strategy is great when you have just started porting a huge code base and want to see something working in the browser(if we make sure we do not hit the stub function in our workflow).
Incase of wasm output, the browser complains of a missing symbol and nothing works which makes it difficult to test wasm output.
I would like to request a flag or something similar by which this behaviour can be altered and wasm does not complain, just like asm.js output.
Thanks.
The text was updated successfully, but these errors were encountered:
Yes. Sorry that was my bad, I did not test with a simpler case.
Basically I have a huge project that works with asm.js but when output is wasm chrome/firefox give this error:
LinkError: WebAssembly Instantiation: Import #6 module="env" function="__XXX" error: global import must be a number
I thought that it could be due to a missing symbol, as the function is indeed missing and a warning is also generated for the same. But since it works in asm.js, shouldn't it also work in wasm?
It should work, yes, so this may be a bug in asm2wasm (the conversion from asm.js to wasm).
If you can't provide a testcase for us to reproduce the problem, you might use EMCC_DEBUG=1 in the env and look at that symbol through the temp files it emits to the temp dir.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
Hi,
Incase of asm.js, missing functions get "linked" to functions that call abort (please correct me if I am wrong). This strategy is great when you have just started porting a huge code base and want to see something working in the browser(if we make sure we do not hit the stub function in our workflow).
Incase of wasm output, the browser complains of a missing symbol and nothing works which makes it difficult to test wasm output.
I would like to request a flag or something similar by which this behaviour can be altered and wasm does not complain, just like asm.js output.
Thanks.
The text was updated successfully, but these errors were encountered: