Enable exception catching and memory growth in Javascript.
@@ -925,6 +925,9 @@ if(TINYSPLINE_ENABLE_CXX)
COMMAND "${CMAKE_C_COMPILER}"
--bind
-o ${TINYSPLINE_JS_LIBRARY_OUTPUT_NAME}.js
+ -s NO_DISABLE_EXCEPTION_CATCHING
+ -s ALLOW_MEMORY_GROWTH=1
+ -s ABORTING_MALLOC=0
-Wl,--whole-archive $<TARGET_FILE_NAME:${TINYSPLINE_JS_CMAKE_TARGET}>
-Wl,--no-whole-archive
WORKING_DIRECTORY "${TINYSPLINE_OUTPUT_DIRECTORY}"
