Replies: 2 comments 12 replies
-
From the error message it looks like you are using Node.js v20.10.0, no? If the C++ code is throwing, is it not expected that you would get and exception like this? Should you not wrap the call in a try/catch on the C++ side if you expect the code to throw? Or is the C++ throwing and catching internally? i.e. are you expecting the exceptions not to escape? |
Beta Was this translation helpful? Give feedback.
8 replies
-
Glad it working for you! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a C++ project that I'm compiling to wasm. I'm using conan as package manager, and I'm requiring the latest
emsdk
conan package,emsdk/3.1.49
, which is dependant onnodejs/16.3.0
.I'm using embind to expose three functions from the C++ project, one of which, when executed, uses C++ exceptions. When running a JS test that calls the exposed API, I'm getting this error:
I'm running the JS test with
node test.js --experimental-wasm-eh
.I'm using
-fwasm-exceptions
both for compiling and linking the C++ project to wasm.I wonder if the issue comes from the fact that nodejs support for exception handling isn't available until version 17.0, as stated here.
If so, do you have any idea when there will be a conan
emsdk
binary dependant onnodejs/17.0
+?Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions