OP_NEWOBJECT uses long operand

This commit is contained in:
2020-11-18 14:35:58 -06:00
parent 4c4b5eae8d
commit 3727d6bb7c
4 changed files with 15 additions and 16 deletions

View File

@@ -570,7 +570,7 @@ static void object(CParseState *pstate, bool canAssign) {
}
writeu8(pstate, OP_NEWOBJECT);
writeu8(pstate, entries);
writeu16(pstate, entries);
valuePushed(pstate, 1);
}
@@ -753,7 +753,7 @@ static void _class(CParseState *pstate) {
}
writeu8(pstate, OP_NEWOBJECT);
writeu8(pstate, entries);
writeu16(pstate, entries);
valuePushed(pstate, 1);
defineVariable(pstate, var, false);
}