Yes the -s ASSERTIONS=1 stuff fixes it. Thanks. Le mardi 9 juillet 2019 23:56:49 UTC+2, Alon Zakai a écrit : > > If you are loading the code as an ES6 module, that error looks like it > might be the same as > > > https://github.com/emscripten-core/emscripten/pull/8306#discussion_r284040606 > > which was pulled off into > > https://github.com/emscripten-core/emscripten/issues/8678 > > As a workaround until that is fixed, removing -s ASSERTIONS=1 should avoid > the problem. > > - Alon > > > On Thu, Jul 4, 2019 at 7:23 AM Stéphane Letz <[email protected] <javascript:>> > wrote: > >> I get this error: >> >> libwasm-worklet-glue.js:8 Uncaught TypeError: Cannot assign to read only >> property '__ZSt18uncaught_exceptionv' of object '[object Object]' >> at libwasm-worklet-glue.js:8 >> at clarinetMIDI-processor1.js:7 >> >> when loading and starting a WASM compiled library: >> >> import FaustModule from './libwasm-worklet-glue.js'; >> >> const faust_module = FaustModule(); >> >> The code is compiled with : >> >> --bind -O3 --memory-init-file 0 -s LINKABLE=1 -s WASM=1 -s >> EXPORT_NAME=\"'FaustModule'\" -s MODULARIZE=1 -s ASSERTIONS=1 -s >> ALLOW_MEMORY_GROWTH=1 -s DISABLE_EXCEPTION_CATCHING=1 -s >> BINARYEN_ASYNC_COMPILATION=0 -s SINGLE_FILE=1" >> >> Any idea? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/emscripten-discuss/07d23290-a612-4099-86e2-4e235e540043%40googlegroups.com >> >> <https://groups.google.com/d/msgid/emscripten-discuss/07d23290-a612-4099-86e2-4e235e540043%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >
-- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/09c57497-15ab-4f42-837d-4eb1258ae7e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
