[Pkg-javascript-commits] [node-jsonstream] 22/214: emit data, whoops
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:33 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 aeb9be941367bb746ca3d8b53294b3c3a3c0b7f2
Author: James Halliday <mail at substack.net>
Date: Wed Feb 22 11:34:14 2012 -0800
emit data, whoops
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index b2c8cd1..1cee1af 100644
--- a/index.js
+++ b/index.js
@@ -108,7 +108,7 @@ exports.stringify = function (op, sep, cl) {
return
ended = true
if(data) stream.write(data)
- if(!anyData) stream.write(op)
+ if(!anyData) stream.emit('data', op)
stream.emit('data', cl)
stream.emit('end')
--
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