diff --git a/src/me/topchetoeu/jscript/engine/values/FunctionValue.java b/src/me/topchetoeu/jscript/engine/values/FunctionValue.java index 1a19925..01eb281 100644 --- a/src/me/topchetoeu/jscript/engine/values/FunctionValue.java +++ b/src/me/topchetoeu/jscript/engine/values/FunctionValue.java @@ -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);