3 ms·
Two days ago I discovered that Node-based server that I wrote converts user money balance from a number to the string somewhere completely silently, and after t
by golergka 7y ago
Two days ago I discovered that Node-based server that I wrote converts user money balance from a number to the string somewhere completely silently, and after that money added to it is treated like string concatenation instead of integer addition. Made me shiver when I realized what was happening, good thing we're not live yet.
(It's not real money, I'm a game developer, and would obviously never use JS's floats for real currency. But it still would be a product-killing bug).