[Pkg-javascript-commits] [node-jsonstream] 55/214: allow null path
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:39 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 caf750e37f78fdfbbdc239bc5083dd83304bcf57
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Fri Sep 7 13:57:00 2012 +0200
allow null path
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 9428fd1..80a536f 100644
--- a/index.js
+++ b/index.js
@@ -15,7 +15,7 @@ exports.parse = function (path) {
var stream = new Stream()
var parser = new Parser()
var count = 0
- if(!path.length)
+ if(!path || !path.length)
path = null
parser.onValue = function () {
if(!this.root && this.stack.length == 1){
--
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