Demo changes
This commit is contained in:
@@ -21,3 +21,7 @@ func NewFrame(cl *object.Closure, basePointer int) *Frame {
|
||||
func (f *Frame) Instructions() code.Instructions {
|
||||
return f.cl.Fn.Instructions
|
||||
}
|
||||
|
||||
func (f *Frame) NextOp() code.Opcode {
|
||||
return code.Opcode(f.Instructions()[f.ip+1])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user