Skip to content

Commit 2feccf8

Browse files
committed
Do extra work
1 parent 6d7d7d6 commit 2feccf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/vm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
8383
vm.ip = 0
8484

8585
for vm.ip < len(program.Bytecode) {
86-
if debug && vm.debug {
86+
if vm.debug {
8787
<-vm.step
8888
}
8989

@@ -566,7 +566,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
566566
panic(fmt.Sprintf("unknown bytecode %#x", op))
567567
}
568568

569-
if debug && vm.debug {
569+
if vm.debug {
570570
vm.curr <- vm.ip
571571
}
572572
}

0 commit comments

Comments
 (0)