Hi, we are trying a project with WASM on emscripten 1.37.16. the compilation is successful but the following errors are blocking startup:
*bundle.js:960 failed to asynchronously prepare wasm: LinkError: WebAssembly Instantiation: Import #4 module="env" function="__ZN10AbccdWxyzt19kDefaultABCDTpppwE" error: global import must be a number* *printErr @ bundle.js:960* *onWorkerMessage @ bundle.js:3049* *ABCBackend.worker-31341fb3.js:1 Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': LinkError: WebAssembly Instantiation: Import #4 module="env" function="__ZN10AbccdWxyzt19kDefaultABCDTpppwE" error: global import must be a number could not be cloned.* * at Object.Module_print [as print] (http://localhost:8080/node_modules/@google/abc-product/public/ABCBackend.worker-31341fb3.js:1:2212336)* * at abort (http://localhost:8080/node_modules/@google/abc-product/public/ABCBackend.worker-31341fb3.js:1:2218942)* * at http://localhost:8080/node_modules/@google/abc-product/public/ABCBackend.worker-31341fb3.js:1:68213* * at <anonymous>* *Module_print @ ABCBackend.worker-31341fb3.js:1* *abort @ ABCBackend.worker-31341fb3.js:1* *(anonymous) @ ABCBackend.worker-31341fb3.js:1* *Promise rejected (async)* *doNativeWasm @ ABCBackend.worker-31341fb3.js:1* *Module.asm @ ABCBackend.worker-31341fb3.js:1* *(anonymous) @ ABCBackend.worker-31341fb3.js:1* Is there any way to fix this? the "__ZN10AbccdWxyzt19kDefaultABCDTpppwE" mentioned in the error is a "static constexpr auto *** = 200ms" in C++ code. we are not sure if it is related to wasm_ctor_eval which is commented out because the length of the constructor list exceeds windows limitation. Thanks in advance -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
