Hi,
Due to using EMULATE_FUNCTION_POINTER_CASTS (required for Python)
I get when compiling:
BINARYEN_ASYNC_COMPILATION disabled due to user options. This
will reduce performance and compatibility (some browsers limit
synchronous compilation)
This indeed causes an error in Chrome:
failed to compile wasm module: RangeError: WebAssembly.Compile
is disallowed on the main thread, if the buffer size is larger
than 4KB. Use WebAssembly.compile, or compile on a worker
thread.
Assertion failed: no binaryen method succeeded.
Currently I have an alternate version compiled in asmjs (with
decreased perf), and I blindly redirect to it when I detect
Chrome.
- Assuming Chrome fixes this later, is there a way to cleanly
catch this "no binaryen method succeeded"?
- Incidentally, what would be required to make EMULATE_FUNCTION_POINTER_CASTS compatible with Chrome wasm?
Cheers!
Beuc
Thanks a lot, -incoming with this patch runs fine in my Chromium :)
- Sylvain