about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkg/lang/vm/value/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/lang/vm/value/value.go b/pkg/lang/vm/value/value.go
index 5e222a3..f1ccc2d 100644
--- a/pkg/lang/vm/value/value.go
+++ b/pkg/lang/vm/value/value.go
@@ -49,7 +49,7 @@ func NewArray(m mem.Mem, arr []Value) (Value, error) {
 }
 
 func NewNull() Value {
-	return Value{t: CORE_TYPE_NULL}
+	return Value{t: CORE_TYPE_NULL, d: NullData{}}
 }
 
 func NewFunction(pc int, args uint) Value {