resolve issue with node v0.10.48

This commit is contained in:
Sai1919
2016-11-08 04:29:55 +05:30
parent 58ee9a2bd2
commit b52144ba5e

View File

@@ -9,8 +9,9 @@ function XmlParser (opts) {
this.opts = opts || {}
this.parserState = new ParserState()
this.parser = new expat.Parser('UTF-8')
var transformOpts = { readableObjectMode: true }
stream.Transform.call(this, transformOpts)
// var transformOpts = { readableObjectMode: true }
stream.Transform.call(this)
this._readableState.objectMode = true
}
util.inherits(XmlParser, stream.Transform)