Skip to content

reflect: align deepValueEqual with upstream - #5868

Open
jakebailey wants to merge 1 commit into
tinygo-org:devfrom
jakebailey:reflect-deepequal-cycle-keys
Open

jakebailey wants to merge 1 commit into
tinygo-org:devfrom
jakebailey:reflect-deepequal-cycle-keys

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This code had been copied from upstream Go incorrectly. Or upstream changed? No matter, fix it.

Different interface slots can hold values of the same dynamic type, and
slice headers can describe different views of the same backing array.
Using their first words as cycle identities can conflate unequal values
and skip comparisons that DeepEqual still needs to perform.
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