timers: extract type checking into a helper
Extract type checking used by setTimeout()
, setInterval
and setUnrefTimeout
into a helper.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines