about summary refs log tree commit diff
path: root/pkg/lang/vm/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/vm.go')
-rw-r--r--pkg/lang/vm/vm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/lang/vm/vm.go b/pkg/lang/vm/vm.go
index 434eae3..a6e1fb8 100644
--- a/pkg/lang/vm/vm.go
+++ b/pkg/lang/vm/vm.go
@@ -13,8 +13,9 @@ type VM struct {
 
 func New(code *code.Code) *VM {
 	return &VM{
-		code: code,
-		pc:   0,
+		code:  code,
+		pc:    0,
+		stack: NewCallStack(),
 	}
 }