diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt index 892fc160656..c5687eaf8a3 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt @@ -69,7 +69,7 @@ class IrInterpreter(private val irBuiltIns: IrBuiltIns, private val bodyMap: Map private fun incrementAndCheckCommands() { commandCount++ - if (commandCount >= MAX_COMMANDS) throw InterpreterTimeOutError() + if (commandCount >= MAX_COMMANDS) InterpreterTimeOutError().throwAsUserException() } fun interpret(expression: IrExpression): IrExpression {