From 0285f462a0941c2c3b6e679eb239f1fe9cfa3b0e Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 26 Oct 2021 14:33:14 +0200 Subject: Fix global name resolution inside functions --- src/bytecode/vm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bytecode/vm.h') diff --git a/src/bytecode/vm.h b/src/bytecode/vm.h index 6c44fc6..2bc5c8a 100755 --- a/src/bytecode/vm.h +++ b/src/bytecode/vm.h @@ -261,6 +261,7 @@ vm_interpret(VM *vm) { } break; case OP_CALL: { Object proc = array_pop(vm->stack); + // disassemble_chunk(proc.chunk); // Tail-call optimization. if (proc.chunk != frame->chunk || *vm->pc != OP_RETURN) { -- cgit v1.2.1