Commit 5d18829e authored by isaacs's avatar isaacs

Don't pass nonTap up to the parent, just the tapError

parent 8ef70b9f
...@@ -211,12 +211,13 @@ Parser.prototype.nonTap = function (data, didLine) { ...@@ -211,12 +211,13 @@ Parser.prototype.nonTap = function (data, didLine) {
return return
if (this.strict) { if (this.strict) {
this.tapError({ var err = {
tapError: 'Non-TAP data encountered in strict mode', tapError: 'Non-TAP data encountered in strict mode',
data: data data: data
}) }
this.tapError(err)
if (this.parent) if (this.parent)
this.parent.nonTap(data) this.parent.tapError(err)
} }
// emit each line, then the extra as a whole // emit each line, then the extra as a whole
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment