[Wasm] Keep error message for the IAE exception
This commit is contained in:
committed by
TeamCityServer
parent
dcdc7e4633
commit
049e48e780
+1
-1
@@ -515,12 +515,12 @@ val wasmPhases = NamedCompilerPhase(
|
|||||||
addContinuationToNonLocalSuspendFunctionsLoweringPhase then
|
addContinuationToNonLocalSuspendFunctionsLoweringPhase then
|
||||||
addContinuationToFunctionCallsLoweringPhase then
|
addContinuationToFunctionCallsLoweringPhase then
|
||||||
|
|
||||||
stringConstructorLowering then
|
|
||||||
tryCatchCanonicalization then
|
tryCatchCanonicalization then
|
||||||
returnableBlockLoweringPhase then
|
returnableBlockLoweringPhase then
|
||||||
|
|
||||||
forLoopsLoweringPhase then
|
forLoopsLoweringPhase then
|
||||||
propertyAccessorInlinerLoweringPhase then
|
propertyAccessorInlinerLoweringPhase then
|
||||||
|
stringConstructorLowering then
|
||||||
|
|
||||||
defaultArgumentStubGeneratorPhase then
|
defaultArgumentStubGeneratorPhase then
|
||||||
defaultArgumentPatchOverridesPhase then
|
defaultArgumentPatchOverridesPhase then
|
||||||
|
|||||||
+3
-1
@@ -103,7 +103,9 @@ class BuiltInsLowering(val context: WasmBackendContext) : FileLoweringPass {
|
|||||||
return builder.irCall(symbols.throwNoBranchMatchedException, irBuiltins.nothingType)
|
return builder.irCall(symbols.throwNoBranchMatchedException, irBuiltins.nothingType)
|
||||||
|
|
||||||
irBuiltins.illegalArgumentExceptionSymbol ->
|
irBuiltins.illegalArgumentExceptionSymbol ->
|
||||||
return builder.irCall(symbols.throwIAE, irBuiltins.nothingType)
|
return builder.irCall(symbols.throwIAE, irBuiltins.nothingType, 1).apply {
|
||||||
|
putValueArgument(0, call.getValueArgument(0)!!)
|
||||||
|
}
|
||||||
|
|
||||||
irBuiltins.dataClassArrayMemberHashCodeSymbol -> {
|
irBuiltins.dataClassArrayMemberHashCodeSymbol -> {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ internal fun THROW_ISE(): Nothing {
|
|||||||
throw IllegalStateException()
|
throw IllegalStateException()
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun THROW_IAE(): Nothing {
|
internal fun THROW_IAE(message: String): Nothing {
|
||||||
throw IllegalArgumentException()
|
throw IllegalArgumentException(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun throwNoBranchMatchedException(): Nothing {
|
internal fun throwNoBranchMatchedException(): Nothing {
|
||||||
|
|||||||
Reference in New Issue
Block a user