lang: core, funcs: Use the correct zero type
I wasn't using the correct contained type here.
This commit is contained in:
@@ -189,7 +189,7 @@ func (obj *MapLookupFunc) Stream(ctx context.Context) error {
|
||||
|
||||
m := (input.Struct()[mapLookupArgNameMap]).(*types.MapValue)
|
||||
key := input.Struct()[mapLookupArgNameKey]
|
||||
zero := m.Type().New() // the zero value
|
||||
zero := m.Type().Val.New() // the zero value
|
||||
|
||||
var result types.Value
|
||||
val, exists := m.Lookup(key)
|
||||
|
||||
Reference in New Issue
Block a user