Skip to content

Commit 6b8c802

Browse files
committed
Impelement LOAD_FAST
1 parent 6e4d79a commit 6b8c802

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
@@ -562,7 +562,7 @@ func do_STORE_MAP(vm *Vm, arg int32) {
562562

563563
// Pushes a reference to the local co_varnames[var_num] onto the stack.
564564
func do_LOAD_FAST(vm *Vm, var_num int32) {
565-
vm.NotImplemented("LOAD_FAST", var_num)
565+
vm.PUSH(vm.locals[string(vm.co.Varnames[var_num].(py.String))])
566566
}
567567

568568
// Stores TOS into the local co_varnames[var_num].

0 commit comments

Comments
 (0)