[minor] fixes after review

This commit is contained in:
Ilya Chernikov
2019-05-23 14:26:46 +02:00
parent b97813f2b0
commit deb74acc88
3 changed files with 3 additions and 3 deletions
@@ -28,7 +28,7 @@ interface KotlinJsr223InvocableScriptEngine : Invocable {
sequenceOf(requestedReceiver) + backwardInstancesHistory.filterNot { it == requestedReceiver }
override fun invokeFunction(name: String?, vararg args: Any?): Any? {
if (name == null) throw java.lang.NullPointerException("function name cannot be null")
if (name == null) throw AssertionError("function name cannot be null")
return invokeImpl(backwardInstancesHistory, name, args)
}