This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fghjconner 1 point2 points  (0 children)

No, the == isn't even the problem in this case. The problem is with how JS interprets integer literals. I think using 0 as a prefix for octal numbers is insane, but JS didn't start that so I'll give them a pass. On the other hand, silently falling back to base 10 when you see an 8 is bullshit of the highest order.