WASM: Generate throw instruction instead of wasmThrow call

This commit is contained in:
Igor Laevsky
2021-08-18 14:57:14 +03:00
committed by TeamCityServer
parent e5e44a0152
commit 6ca965af6f
10 changed files with 26 additions and 53 deletions
@@ -67,8 +67,3 @@ internal fun <T, R> boxIntrinsic(x: T): R =
@ExcludedFromCodegen
internal fun <T, R> unboxIntrinsic(x: T): R =
implementedAsIntrinsic
internal fun wasmThrow(e: Throwable): Nothing {
println("Kotlin/Wasm exception wasm thrown: ${e.message}")
wasm_unreachable()
}