It seems that causing Immutable to hash Infinity triggers an infinite loop (makes sense I suppose :smirk:).
I can reproduce in Chrome and Firefox from the console on the doc site.
m = Immutable.Map({test: Infinity});
m.hasCode() // spins forever
I haven't really dug into the hasher. If it's not possible to hash infinity, I'd at least expect to see an exception.
cc @marcneuwirth
Haha, nice one. If hashing Infinity takes forever, does hashing -Infinity... reverse time? Let's not even try it just to be safe ;)
Good find.
thanks @leebyron 馃憤
Most helpful comment
Haha, nice one. If hashing
Infinitytakes forever, does hashing-Infinity... reverse time? Let's not even try it just to be safe ;)