Skip to content

Commit

Permalink
Update vm.go
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Sep 6, 2023
1 parent 33e26c5 commit 1894b2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
vm.push(runtime.Deref(a))

case OpIncrementIndex:
scope := vm.Scope()
scope.Index++
vm.Scope().Index++

case OpDecrementIndex:
scope := vm.Scope()
Expand Down

0 comments on commit 1894b2a

Please sign in to comment.