zlacker

[return to "War story: the hardest bug I ever debugged"]
1. gpvos+EG7[view] [source] 2025-03-27 07:23:30
>>jakevo+(OP)
It seems to me that V8 had very bad unit tests if this wasn't caught before release. Making sure all operators act the same way when optimized and not is a no-brainer.
◧◩
2. sgarla+Ed8[view] [source] 2025-03-27 13:07:47
>>gpvos+EG7
Maybe, but I can also understand someone rationalizing that they don’t need to test abs(), because what could possibly go wrong?
◧◩◪
3. gpvos+Wq8[view] [source] 2025-03-27 14:28:31
>>sgarla+Ed8
Fair enough, it's busywork and easy to postpone. But code optimization is something that needs this kind of double-checking, so in the end you should have it for all opcodes, and then including the easy ones like abs isn't much extra work.
[go to top]