graalvm is bad and should go away

This commit is contained in:
Alex Zenla
2025-07-26 16:09:55 -07:00
parent ce8ddb6dc1
commit 1d664e807b
3 changed files with 2 additions and 38 deletions

View File

@ -114,7 +114,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
}
PrefixOperator.UnaryPlus, PrefixOperator.UnaryMinus, PrefixOperator.BinaryNot -> {
if (value !is Number) {
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type '${value.javaClass.simpleName}'")
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type")
}
unaryNumericOperation(node, value)
}
@ -164,7 +164,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
binaryNot = { it.inv() }
)
}
else -> throw RuntimeException("Unknown numeric type: ${value.javaClass.name}")
else -> throw RuntimeException("Unknown numeric type")
}
override fun visitSuffixOperation(node: SuffixOperation): Any {