Assertion failed: call to '_hello' via reference taken before Wasm module initialization
- Dominant language
- JavaScript
- Stars
- 26
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I try to execute your examples on Ubuntu 24.04.3 LTS with emcc 3.1.6 or 4.0.10 and got following error `npm run hello-func:run` after `npm run hello-func:build`:
```
> emscripten-example@1.0.0 hello-func:run
> node call-hello.js
Aborted(Assertion failed: native function `hello` called before runtime initialization)
/home/esteban-dugueperoux/Documents/git/emscripten-example/out/hello-func.js:146
throw ex;
^
RuntimeError: Aborted(Assertion failed: native function `hello` called before runtime initialization)
at abort (/home/esteban-dugueperoux/Documents/git/emscripten-example/out/hello-func.js:1472:11)
at assert (/home/esteban-dugueperoux/Documents/git/emscripten-example/out/hello-func.js:677:5)
at Object._hello (/home/esteban-dugueperoux/Documents/git/emscripten-example/out/hello-func.js:1532:5)
at Object. (/home/esteban-dugueperoux/Documents/git/emscripten-example/call-hello.js:2:6)
at Module._compile (node:internal/modules/cjs/loader:1760:14)
at Object..js (node:internal/modules/cjs/loader:1892:10)
at Module.load (node:internal/modules/cjs/loader:1480:32)
at Module._load (node:internal/modules/cjs/loader:1299:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
Node.js v25.1.0
```
Probably because your examples are old of 9 years and emscripten has probably a lot of changed since.
But I can't find how to fix that.
Do you have an idea?
Regards.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.