-
Notifications
You must be signed in to change notification settings - Fork 640
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
Problems loading emscripten compiled js file in Hermes. Works on JSC/V8. #1456
Comments
Thanks for the report. It's difficult to tell completely without a minimal test case that we can run with the A couple starting points:
If you're able to find a more focused minimal reproduction, I think that'd really help make more progress. |
Thanks for the quick reply and the detailed response, King.👑 I will try to investigate this further. 👍 |
I have scanned a few other discussions and issues about WASM support and what I can tell is that "asm.js" files should work in hermes? The other file i was talking about (which does work on v8/jsc) compiled with "fastcomp" should output asm.js but this file does not work either. Could the optimizations and minification be a problem here?
Does not give any output. |
Found (one) difference in behavior upon modifying the code to call the result of the module. Hermes throws a TypeError if you try to access We'll look into possible solutions. |
Ok interesting! Thanks for the help 👍 |
Any update on this? |
There seem to be some commits regarding the prototype chain issue in RN 0.76. Can you make another one of your tests to see any progress? |
Bug Description
I've been trying to load an emscripten compiled file with hermes with no success.
First I thought it was the minification of the emscripten flags present but it's still the same result even with all minifications turned off.
The code works (minfied) on both V8 and JSC engine. Can you give me any hints on what could be changed to make it work and what is the core difference between Hermes and the others engines?
gradle clean
and confirmed this bug does not occur with JSCUsing the latest(?) version of hermes with
React Native version: 0.73.4
OS: Any
Platform: IOS/ANDROID
Steps To Reproduce
If you want to test it this is the file i'm trying to load.
https://github.com/kryptokrona/kryptokrona-crypto/blob/master/dist/turtlecoin-crypto.js (non-minified)
code example:
The Expected Behavior
The text was updated successfully, but these errors were encountered: