Skip to content

Commit 1894b2a

Browse files
committed
Update vm.go
1 parent 33e26c5 commit 1894b2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/vm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
431431
vm.push(runtime.Deref(a))
432432

433433
case OpIncrementIndex:
434-
scope := vm.Scope()
435-
scope.Index++
434+
vm.Scope().Index++
436435

437436
case OpDecrementIndex:
438437
scope := vm.Scope()

0 commit comments

Comments
 (0)