0
0
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:
Ryan Dahl 2009-09-28 16:13:33 +02:00
parent 095470854b
commit 459d644a5a

View File

@ -46,7 +46,6 @@ function setInterval (callback, repeat) {
function clearTimeout (timer) {
timer.stop();
delete timer;
}
clearInterval = clearTimeout;