Skip to content

add tests for _Utils_eqHelp#1062

Open
jerith666 wants to merge 2 commits intoelm:masterfrom
jerith666:fix-list-equality-combined
Open

add tests for _Utils_eqHelp#1062
jerith666 wants to merge 2 commits intoelm:masterfrom
jerith666:fix-list-equality-combined

Conversation

@jerith666
Copy link
Copy Markdown
Contributor

@jerith666 jerith666 commented Nov 10, 2019

do non-recursive tests before the depth check. this ensures that the
'for(key in x)' loop properly short-circuits, and avoids putting
Tuple2s containing 'undefined' on the stack.

fixes #1011; see that issue and #1031 for further discussion

listTests by @Skinney

do non-recursive tests before the depth check.  this ensures that the
'for(key in x)' loop properly short-circuits, and avoids putting
Tuple2s containing 'undefined' on the stack.

fixes elm#1011; see that issue and elm#1031 for further discussion

listTests by @Skinney
…st-equality-combined

Conflicts:
	src/Elm/Kernel/Utils.js
          -- keep comment from HEAD^1
	tests/tests/Test/Equality.elm
          -- keep additional tests from HEAD^1
@jerith666
Copy link
Copy Markdown
Contributor Author

Now that #1031 has been merged, all that's left here are the additional tests. I've resolved the conflict in case you want to include them.

@evancz evancz changed the title avoid attempts to access properties of undefined in _Utils_eqHelp add tests for _Utils_eqHelp Dec 5, 2019
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.

comparing lists with lengths just above and below 100 produces TypeError: y is undefined in Utils.eqHelp

1 participant