[Wasm] Keep error message for the IAE exception

This commit is contained in:
Igor Laevsky
2021-10-08 19:09:36 +03:00
committed by TeamCityServer
parent dcdc7e4633
commit 049e48e780
3 changed files with 6 additions and 4 deletions
@@ -17,8 +17,8 @@ internal fun THROW_ISE(): Nothing {
throw IllegalStateException()
}
internal fun THROW_IAE(): Nothing {
throw IllegalArgumentException()
internal fun THROW_IAE(message: String): Nothing {
throw IllegalArgumentException(message)
}
internal fun throwNoBranchMatchedException(): Nothing {