(vm *VM)
| 112 | } |
| 113 | |
| 114 | func opPeek(vm *VM) { |
| 115 | n := int64(vm.popInt()) |
| 116 | item, ok := vm.peekNth(n).(Data) |
| 117 | if !ok { |
| 118 | panic(errors.WithData(ErrType, "want", "Data")) |
| 119 | } |
| 120 | vm.chargeCopy(item) |
| 121 | vm.push(item) |
| 122 | } |
nothing calls this directly
no test coverage detected