Charlie Tapping
04/03/2024, 4:29 PMCharlie Tapping
04/03/2024, 4:43 PMCharlie Tapping
04/03/2024, 5:27 PMXwasm-use-traps-instead-of-exceptions
but I can’t seem to get it to work 🤔bashor
04/03/2024, 7:42 PM-Xwasm-use-traps-instead-of-exceptions
you can replace throws with trap (unreachable), so instead of throwing exceptions wasm module will be stopped execution.bashor
04/03/2024, 7:45 PMtasks.withType<KotlinJsCompile>().configureEach {
kotlinOptions.freeCompilerArgs += listOf("-Xwasm-use-traps-instead-of-exceptions")
}
Charlie Tapping
04/03/2024, 8:02 PMbashor
04/03/2024, 8:13 PMCharlie Tapping
04/03/2024, 9:38 PMbashor
04/04/2024, 12:08 AM