diff --git a/parser/src/compiler/vm.rs b/parser/src/compiler/vm.rs index c6c33e9747..d25de9b20b 100644 --- a/parser/src/compiler/vm.rs +++ b/parser/src/compiler/vm.rs @@ -56,7 +56,7 @@ impl VirtualMachine { loop { // for instruction in code.instructions { - if self.program_counter > current_frame.instructions.len() { + if self.program_counter >= current_frame.instructions.len() { break; }