From 459d644a5a99da3aa2b681a25e62c82e89b34710 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 28 Sep 2009 16:13:33 +0200 Subject: [PATCH] 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. --- src/node.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node.js b/src/node.js index 9247a02cf50..917a15daa44 100644 --- a/src/node.js +++ b/src/node.js @@ -46,7 +46,6 @@ function setInterval (callback, repeat) { function clearTimeout (timer) { timer.stop(); - delete timer; } clearInterval = clearTimeout;