mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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.
This commit is contained in:
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
Block a user