amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

put validation: adding '-Infinity' as an invalid case; speeding validation up #1189

Closed orimay closed 2 years ago

orimay commented 2 years ago

Adding '-Infinity' as an invalid case, not handled before Skipping extra checks until needed (like NaN, Infinity) Checking for 'null' first as for more common case than invalid 'undefined' Fixing tests to handle -Infinity

amark commented 2 years ago

Ooo, caught me on -Infinity good one!