mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-09 21:28:39 +01:00
minor fixes
This commit is contained in:
@ -2197,7 +2197,7 @@ static void field(Compiler* compiler, bool canAssign)
|
||||
// Compiles a read or assignment to [variable].
|
||||
static void bareName(Compiler* compiler, bool canAssign, Variable variable)
|
||||
{
|
||||
// If there's an "=" after a bare name, it's a variable assignment.
|
||||
// If there's an assignment after a bare name, it's a variable assignment.
|
||||
if (canAssign && isAssignment(compiler))
|
||||
{
|
||||
// Compile the assignment and right-hand side.
|
||||
|
||||
@ -177,6 +177,11 @@ static int dumpInstruction(WrenVM* vm, ObjFn* fn, int i, int* lastLine)
|
||||
case CODE_STORE_FIELD: BYTE_INSTRUCTION("STORE_FIELD");
|
||||
|
||||
case CODE_POP: printf("POP\n"); break;
|
||||
case CODE_PUSH: {
|
||||
int count = READ_BYTE();
|
||||
printf("PUSH %d\n", count);
|
||||
break;
|
||||
}
|
||||
|
||||
case CODE_CALL_0:
|
||||
case CODE_CALL_1:
|
||||
|
||||
Reference in New Issue
Block a user