about summary refs log tree commit diff
path: root/pkg/lang/vm/utils.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-05-31 01:01:32 +0000
committerGitHub <noreply@github.com>2022-05-31 01:02:20 +0000
commit338744d066704e48e22d8ec56a43acb4b20da7f1 (patch)
treeb508eb6764efc64ac611b6ea063ab44d9e6b0a9c /pkg/lang/vm/utils.go
parent78a29c41098db5e5f8291e0345a3cd443c52b329 (diff)
downloadjinx-338744d066704e48e22d8ec56a43acb4b20da7f1.tar.zst
jinx-338744d066704e48e22d8ec56a43acb4b20da7f1.zip
Add untyped Objects (for now)
Diffstat (limited to 'pkg/lang/vm/utils.go')
-rw-r--r--pkg/lang/vm/utils.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/lang/vm/utils.go b/pkg/lang/vm/utils.go
index 1a884d0..a40a14f 100644
--- a/pkg/lang/vm/utils.go
+++ b/pkg/lang/vm/utils.go
@@ -61,6 +61,8 @@ func (vm *VM) getMemCell(ptr mem.Ptr, kind mem.CellKind, allowNil bool) (mem.Cel
 		_, ok = cell.(value.OutletCell)
 	case mem.CellKindType:
 		_, ok = cell.(value.TypeCell)
+	case mem.CellKindObject:
+		_, ok = cell.(value.ObjectCell)
 	}
 
 	if !ok {