Skip to content

reject non-comparable keys in fromPairs#964

Open
netliomax25-code wants to merge 1 commit into
expr-lang:masterfrom
netliomax25-code:frompairs-non-comparable-key
Open

reject non-comparable keys in fromPairs#964
netliomax25-code wants to merge 1 commit into
expr-lang:masterfrom
netliomax25-code:frompairs-non-comparable-key

Conversation

@netliomax25-code
Copy link
Copy Markdown

fromPairs builds a map[any]any, so a pair whose key is a slice or
map hits a raw "hash of unhashable type" runtime panic. Check the
key is comparable before SetMapIndex and return an error instead,
matching the groupBy handling added in #940.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant