From 4fac7b40134c995468e0e8abf1c908e49102d25c Mon Sep 17 00:00:00 2001 From: Daniel Kang Date: Fri, 25 Jan 2019 15:08:17 -0800 Subject: [PATCH] register immutable array to gob --- compiler/bytecode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/bytecode.go b/compiler/bytecode.go index 9d13d0b..6e87585 100644 --- a/compiler/bytecode.go +++ b/compiler/bytecode.go @@ -42,11 +42,12 @@ func init() { gob.Register(&objects.Bool{}) gob.Register(&objects.Char{}) gob.Register(&objects.Array{}) + gob.Register(&objects.ImmutableArray{}) gob.Register(&objects.Map{}) + gob.Register(&objects.ImmutableMap{}) gob.Register(&objects.CompiledFunction{}) gob.Register(&objects.Undefined{}) gob.Register(&objects.Error{}) - gob.Register(&objects.ImmutableMap{}) gob.Register(&objects.Bytes{}) gob.Register(&objects.StringIterator{}) gob.Register(&objects.MapIterator{})