[Pkg-javascript-commits] [node-leveldown] 400/492: qualify 'gc()' use
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit d169f562496621002aa03e761e784c104e174e60
Author: Rod Vagg <rod at vagg.org>
Date: Sun Sep 1 23:12:42 2013 +1000
qualify 'gc()' use
---
test/leak-tester.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/leak-tester.js b/test/leak-tester.js
index 8972797..ba088bf 100644
--- a/test/leak-tester.js
+++ b/test/leak-tester.js
@@ -29,7 +29,8 @@ function run () {
})
if (getCount % 1000 === 0) {
- gc()
+ if (typeof gc != 'undefined')
+ gc()
console.log(
'getCount ='
, getCount
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list