TopchetoEU/revert-ES5 #31

Merged
TopchetoEU merged 41 commits from TopchetoEU/revert-ES5 into master 2024-12-09 21:39:57 +00:00
Showing only changes of commit 54d55814af - Show all commits

View File

@ -469,7 +469,9 @@ public class InstructionRunner {
}
private static Value execLoadArg(Environment env, Instruction instr, Frame frame) {
frame.push(frame.args[(int)instr.get(0)]);
int i = instr.get(0);
if (i >= frame.args.length) frame.push(Value.UNDEFINED);
else frame.push(frame.args[i]);
frame.codePtr++;
return null;
}