From 0b34c681396f317f47a10db4edc8741bb826c596 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Sat, 14 Sep 2024 14:22:51 +0300 Subject: [PATCH] fix: unnecessary new line in toReadable --- src/main/java/me/topchetoeu/jscript/runtime/values/Value.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/topchetoeu/jscript/runtime/values/Value.java b/src/main/java/me/topchetoeu/jscript/runtime/values/Value.java index 739f0d87..92bc03e 100644 --- a/src/main/java/me/topchetoeu/jscript/runtime/values/Value.java +++ b/src/main/java/me/topchetoeu/jscript/runtime/values/Value.java @@ -470,7 +470,7 @@ public abstract class Value { passed.add(this); if (keys.size() + obj.getOwnSymbolMembers(env, true).size() == 0) { - if (!printed) res.append("{}\n"); + if (!printed) res.append("{}"); } else if (!printed) { if (tab > 3) return "{...}";