about summary refs log tree commit diff
path: root/pkg/lang/vm
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-06-01 16:27:37 +0000
committerGitHub <noreply@github.com>2022-06-01 16:27:37 +0000
commit6afc2a101037f18e09512f725501334258a13509 (patch)
tree5a659c6c8d8f88aed9e513f52914d2dfc60038ab /pkg/lang/vm
parente6bb876b7c6b307af7c5d9d2db815acf0fe09bc4 (diff)
downloadjinx-6afc2a101037f18e09512f725501334258a13509.tar.zst
jinx-6afc2a101037f18e09512f725501334258a13509.zip
Add NullData to null values
Diffstat (limited to 'pkg/lang/vm')
-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 {