ES6 Support Groundwork + Fixes (OLD ONE DON'T LOOK AT ME!!!) #22

Merged
TopchetoEU merged 49 commits from ES6 into master 2024-09-05 14:17:52 +00:00
Showing only changes of commit 93c246ad97 - Show all commits

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