[Pkg-javascript-commits] [node-jsonstream] 69/214: clear stack so do not run out of memory

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-jsonstream.

commit 350e82ec04f2ba0346220077fc02cf6256fae964
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Fri Mar 15 10:38:04 2013 +1300

    clear stack so do not run out of memory
---
 index.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/index.js b/index.js
index 87201ad..e60d59e 100644
--- a/index.js
+++ b/index.js
@@ -48,6 +48,8 @@ exports.parse = function (path) {
 
   count ++
   stream.emit('data', this.value[this.key])
+  for(var i in this.stack)
+    this.stack[i].value = {}
   }
 
   parser._onToken = parser.onToken;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git



More information about the Pkg-javascript-commits mailing list