diff --git a/pkg/vm/stack.go b/pkg/vm/stack.go index fc41a0406..8ad86d6aa 100644 --- a/pkg/vm/stack.go +++ b/pkg/vm/stack.go @@ -96,7 +96,7 @@ func (e *Element) TryBool() (bool, error) { return t.value.Int64() != 0, nil case *BoolItem: return t.value, nil - case *ArrayItem, *StructItem: + case *ArrayItem, *StructItem, *MapItem: return true, nil case *ByteArrayItem: for _, b := range t.value {