From 65f9debecccb60218a8dcac7ff6d4add1c6305e8 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Mon, 9 Dec 2024 23:39:05 +0200 Subject: [PATCH] fix: use default construct method --- .../java/me/topchetoeu/jscript/runtime/InstructionRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java b/src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java index dd44deb..ec6efa7 100644 --- a/src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java +++ b/src/main/java/me/topchetoeu/jscript/runtime/InstructionRunner.java @@ -43,7 +43,7 @@ public class InstructionRunner { var callArgs = frame.take(instr.get(0)); var funcObj = frame.pop(); - frame.push(funcObj.construct(env, instr.get(1), callArgs)); + frame.push(funcObj.construct(env, callArgs)); frame.codePtr++; return null;