How was emscripten_set_wheel_callback_on_thread generated in wasm file
We had met a bug about _emscripten_set_wheel_callback_on_thread in web app based on wasm. Relative post: https://www.weiy.city/2025/02/uncaught-typeerror-cannot-read-properties-of-null-reading-onwheel-from-_emscripten_set_wheel_callback_on_thread/ Let’s explore how was the function generated in the final wasm file. The function _emscripten_set_wheel_callback_on_thread was from emscripten_set_wheel_callback_on_thread in src/library_html5.js. Read js files and html5.h under emsdk to find the called logic. Code in Read more…