[WasmJs] Support catching JS exceptions
Fixed #KT-65660
This commit is contained in:
committed by
Space Team
parent
c6aac835e5
commit
8fe5cf2641
@@ -18,4 +18,8 @@ private fun throwJsError(message: String?, wasmTypeName: String?, stack: Externa
|
||||
|
||||
internal fun throwAsJsException(t: Throwable): Nothing {
|
||||
throwJsError(t.message, getSimpleName(t.typeInfo), t.jsStack)
|
||||
}
|
||||
|
||||
internal fun throwJsException(): Nothing {
|
||||
throw JsException()
|
||||
}
|
||||
Reference in New Issue
Block a user