Improve callstack() debug function and rename it to stacktrace()

This commit is contained in:
2020-03-14 16:44:28 +01:00
parent 5c56060e70
commit 8ee3195bef
7 changed files with 53 additions and 41 deletions

View File

@@ -10,7 +10,7 @@ interface Environment {
fun printModules(printContent: Boolean)
fun invokeFunction(name: String, arguments: List<Value>): Value
fun invokeMethod(obj: Value, name: String, arguments: List<Value>): Value
fun printCallStack()
fun printCallStack(scopes: Boolean = false)
fun stackTrace(): String
fun defineFunction(function: Function)
fun defineMethod(method: Method)