Skip to content

Commit 51c26cc

Browse files
committed
Implement STORE_FAST
1 parent 3f7c1e2 commit 51c26cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/eval.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func do_LOAD_FAST(vm *Vm, var_num int32) {
568568

569569
// Stores TOS into the local co_varnames[var_num].
570570
func do_STORE_FAST(vm *Vm, var_num int32) {
571-
vm.NotImplemented("STORE_FAST", var_num)
571+
vm.locals[vm.co.Varnames[var_num]] = vm.POP()
572572
}
573573

574574
// Deletes local co_varnames[var_num].

0 commit comments

Comments
 (0)