fix: functions now print their name when stringified
This commit is contained in:
parent
1666682dc2
commit
4111dbf5c4
@ -11,7 +11,7 @@ public abstract class FunctionValue extends ObjectValue {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "function(...) { ...}";
|
||||
return "function %s(...)".formatted(name);
|
||||
}
|
||||
|
||||
public abstract Object call(Context ctx, Object thisArg, Object ...args);
|
||||
|
Loading…
Reference in New Issue
Block a user