Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWeird runtime error with eq #177
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
evancz
Jun 25, 2016
Member
Thank you for the comprehensive issue! Love issues like this :)
This should be fixed by 6f5fbb8.
|
Thank you for the comprehensive issue! Love issues like this :) This should be fixed by 6f5fbb8. |
evancz
closed this
Jun 25, 2016
added a commit
that referenced
this issue
Jun 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TheSeamau5 commentedFeb 17, 2015
So, I was testing the core String library with elm-check when suddenly I had a weird runtime error.
This is the code I was testing with:
and when I try checking my test:
I get a runtime error that seems to point to the
eqfunction defined in JavascriptChrome (latest) :
Firefox Developer Edition (latest):
When I open the developer console, I'm immediately pointed to the
eqfunction.This is the moment right before the type error:
The bug happens due to a next if statement. It asks,
if i in yexcept that theinoperator only works on objects and somehow an actual string, in this case :饑, has managed to sneak in as y.I speculate that what is needed is a
typeofcheck forythe same way that there is atypeofcheck forxcuztypeof "饑" === "object"yieldsfalse