From 130fe1744156e124c480bfe09e6db10dc267676a Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Fri, 13 Dec 2024 02:27:32 +0200 Subject: [PATCH] missed you lil fucker --- src/main/java/me/topchetoeu/jscript/runtime/JSONConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/topchetoeu/jscript/runtime/JSONConverter.java b/src/main/java/me/topchetoeu/jscript/runtime/JSONConverter.java index 5a0e3b5..d1f4ade 100644 --- a/src/main/java/me/topchetoeu/jscript/runtime/JSONConverter.java +++ b/src/main/java/me/topchetoeu/jscript/runtime/JSONConverter.java @@ -26,7 +26,7 @@ public class JSONConverter { var res = new ObjectValue(); for (var el : val.map().entrySet()) { - res.defineOwnMember(null, el.getKey(), toJs(el.getValue())); + res.defineOwnField(null, el.getKey(), toJs(el.getValue())); } return res;