diff --git a/src/node.js b/src/node.js index e9a1e77b93..59bb88711a 100644 --- a/src/node.js +++ b/src/node.js @@ -443,7 +443,9 @@ GLOBAL.setInterval = function (callback, repeat) { }; GLOBAL.clearTimeout = function (timer) { - timer.stop(); + if (timer instanceof process.Timer) { + timer.stop(); + } }; GLOBAL.clearInterval = GLOBAL.clearTimeout;