Full test (which fails)

This commit is contained in:
Ian Gulliver
2021-11-18 17:53:38 -10:00
parent 8e34c67f11
commit e99387beb4
5 changed files with 27 additions and 22 deletions

View File

@@ -3,13 +3,13 @@ package vm
type stackFrame struct {
previousFunctionIndex int64
previousInstructionIndex int64
functionMemory *memory
functionMemory *Memory
}
func newStackFrame(state *State) *stackFrame {
return &stackFrame{
previousFunctionIndex: state.functionIndex,
previousInstructionIndex: state.instructionIndex,
functionMemory: newMemory(16),
functionMemory: NewMemory(16),
}
}