File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ exports.active = function(item) {
168168
169169
170170exports . setTimeout = function ( callback , after ) {
171- after *= 1 ; // coalesce to number or NaN
171+ after = parseInt ( after , 10 ) ; // coalesce to number or NaN
172172
173173 if ( ! ( after >= 1 && after <= TIMEOUT_MAX ) ) {
174174 after = 1 ; // schedule on next tick, follows browser behaviour
@@ -224,7 +224,7 @@ exports.clearTimeout = function(timer) {
224224
225225
226226exports . setInterval = function ( callback , repeat ) {
227- repeat *= 1 ; // coalesce to number or NaN
227+ repeat = parseInt ( repeat , 10 ) ; // coalesce to number or NaN
228228
229229 if ( ! ( repeat >= 1 && repeat <= TIMEOUT_MAX ) ) {
230230 repeat = 1 ; // schedule on next tick, follows browser behaviour
You can’t perform that action at this time.
0 commit comments