mirror of https://github.com/nodejs/node.git
Don't delete timer object on clearTimeout.
I've heard delete is inefficient in v8. Better to let the garbage collector take care of it naturally.pull/22966/head
parent
095470854b
commit
459d644a5a
|
@ -46,7 +46,6 @@ function setInterval (callback, repeat) {
|
|||
|
||||
function clearTimeout (timer) {
|
||||
timer.stop();
|
||||
delete timer;
|
||||
}
|
||||
|
||||
clearInterval = clearTimeout;
|
||||
|
|
Loading…
Reference in New Issue