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 0064c74ac8 - Show all commits

View File

@ -40,6 +40,9 @@ public class InstructionRunner {
return null;
}
private static Value execCallSuper(Environment env, Instruction instr, Frame frame) {
if (!frame.isNew) throw EngineException.ofError("Super constructor may be called only when constructing");
if (frame.self != null) throw EngineException.ofError("Super constructor may be called once");
var callArgs = frame.take(instr.get(0));
var superFunc = frame.pop();