timers: fix setTimeout expiration logic
I fixed the setTimeout issue.
I changed the logic to be the same logic as v10.30.0
following the lines. https://github.com/nodejs/node/blob/v10.13.0/lib/timers.js#L240-L243
Fixes: https://github.com/nodejs/node/issues/24203
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines