This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
increment(0) == increment(1) #41
Comments
+1 on this one, we doubled and trippel-checked our implementation until we looked at the source and realized that it did |
I just opened #65, but I'm not certain on whether it'll get merged or not considering the staleness of this repo. You guys can feel free to point to my fork if you want. |
@todd No updates have been made here for quite awhile, so I've been keeping hot-shots up to date as an alternative to this. It included a fix for this issue awhile ago: brightcove/hot-shots#13 |
@bdeitte Thanks for the heads up. I'll give your package a whirl. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I know I shouldn't have called increment(0) but let me tell you it took a long time to find that bug !
Because increment (and decrement) compare delta to 0/null and not to undefined
could become :
or
Why was it hard to figure it out:
I think you could document that special case... or allow
delta == 0
Many thanks for all your hard work anyway!
The text was updated successfully, but these errors were encountered: