lang: core, funcs: Use the correct zero type

I wasn't using the correct contained type here.
This commit is contained in:
James Shubin
2024-08-19 00:46:23 -04:00
parent 2e774215e4
commit 9a5f6a5bd3
4 changed files with 4 additions and 4 deletions

View File

@@ -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)