change back to support custom data types

This commit is contained in:
2023-06-21 20:42:12 +01:00
parent 9fe8bcb515
commit 114cdec821
2 changed files with 8 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ func runVal(line any, stack stack, stacklevel int) (any, ArErr) {
break
}
return runTryCatch(x, stack, stacklevel+1)
case bool, ArObject, number, nil:
case bool, ArObject, number, nil, Callable:
return x, ArErr{}
}
if stackoverflow {