emscripten-core / emscripten-core/emscripten

embind-emit-tsd does not work with -fwasm-exceptions

Open
#20,514 1 comment 0 reactions 0 assignees View on GitHub
embind
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

**Version of emscripten/emsdk:**
3.1.47

**Failing command line in full:**

```
emscripten$ em++ -fwasm-exceptions -lembind ./test/other/embind_tsgen.cpp --embind-emit-tsd=foo

failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): unexpected section (enable with --experimental-wasm-eh) @+3361
Aborted(CompileError: WebAssembly.instantiate(): unexpected section (enable with --experimental-wasm-eh) @+3361)
tsgen_a.out.js:136
throw ex;
^

RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): unexpected section (enable with --experimental-wasm-eh) @+3361)
at abort (tsgen_a.out.js:641:11)
at tsgen_a.out.js:766:5
em++: error: 'node tsgen_a.out.js' failed (returned 7)

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.