lib: fix emit warning for debuglog.time when disabled
Fixes #54265 (closed)
The code of debuglog.time was executing because the internal flag timerFlags
had the value 7
and the comparison was wrong, instead of checking if the enum flags were activated (2 | 4
), I was just making a ===
comparison.
Now this behavior is fixed by just doing the comparison correctly, I also added a test to track this regression.
In theory, this bug slowed down a little bit all the requires
but not too much since the heavy part was skipped.