timers: Implement conversion of timer argument
"timer" argument should be converted to primitive, which makes the node API consistent with the browsers behavior.
Fix: https://github.com/nodejs/node/issues/7792
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
timers