From 93c246ad97833e5f59c13a6f9b4fed2cd8f186e7 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:44:24 +0300 Subject: [PATCH] refactor: remove arg loading from frame --- src/java/me/topchetoeu/jscript/runtime/Frame.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/java/me/topchetoeu/jscript/runtime/Frame.java b/src/java/me/topchetoeu/jscript/runtime/Frame.java index f91ba76..acfb0af 100644 --- a/src/java/me/topchetoeu/jscript/runtime/Frame.java +++ b/src/java/me/topchetoeu/jscript/runtime/Frame.java @@ -422,20 +422,8 @@ public final class Frame { var i = 0; - for (; i < func.body.argsN && i < args.length; i++) { - this.locals.add(new Value[] { args[i] }); - } - for (; i < args.length; i++) { - this.locals.add(new Value[] { Value.UNDEFINED }); - } - for (i = 0; i < func.body.localsN; i++) { this.locals.add(new Value[] { Value.UNDEFINED }); } - - // this.locals = new LocalScope(func.body.localsN, func.captures); - // this.locals.get(0).set(thisArg); - // this.locals.get(1).value = new ArgumentsValue(this, args); - } }