refactor: remove arg loading from frame

This commit is contained in:
TopchetoEU 2024-09-04 10:44:24 +03:00
parent 7c8efaf066
commit 93c246ad97
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -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);
}
}