resolve issue with node v0.10.48
This commit is contained in:
@@ -9,8 +9,9 @@ function XmlParser (opts) {
|
|||||||
this.opts = opts || {}
|
this.opts = opts || {}
|
||||||
this.parserState = new ParserState()
|
this.parserState = new ParserState()
|
||||||
this.parser = new expat.Parser('UTF-8')
|
this.parser = new expat.Parser('UTF-8')
|
||||||
var transformOpts = { readableObjectMode: true }
|
// var transformOpts = { readableObjectMode: true }
|
||||||
stream.Transform.call(this, transformOpts)
|
stream.Transform.call(this)
|
||||||
|
this._readableState.objectMode = true
|
||||||
}
|
}
|
||||||
util.inherits(XmlParser, stream.Transform)
|
util.inherits(XmlParser, stream.Transform)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user