You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build tests.cpp as an Emscripten/Node runner so the wasm build can be checked with the same native test coverage. The wrapper sources emsdk when needed and decodes uncaught C++ exceptions into useful error messages. Wasm builds now support C++ exception handling, so the try/catch assertions should no longer be skipped in tests.cpp. Removing the guards keeps native and wasm test coverage aligned.
Necessary other change: move Emscripten createNew wrappers into bindings. Keep the JavaScript-friendly TIVarFile.createNew(string, ...) API without adding Emscripten-only string overloads to the C++ class. Those overloads made tests.cpp ambiguous when compiled with __EMSCRIPTEN__, so the wasm tests can now build the same source without undefining the platform macro.
0 commit comments