emscripten
emscripten copied to clipboard
emscripten_receive_on_main_thread_js cannot read properties of undefined(reading apply)
we use qiankun frame load Decoder.js/Decoder.wasm, it run error: cannot read properties of undefined(reading 'apply') at _emscripten_receive_om_main_thread_js at callRuntimeCallbacks at initRuntime at doRun at run at runCaller at removeRunDependency?
Can you reproduce this with DevTools running? There is a typo in _emscripten_receive_om_main_thread_js which make me think you are typing this out by hand, but you should be able to copy and paste this stuff from devtools.
Can you see the exact line one which the crash is happening? What does that line look like? I don't see any calls to .apply in the _emscripten_receive_on_main_thread_js today which makes me think you are using perhaps an older version of emscripten? Can you try with the latest version?