Skip to content

Commit

Permalink
If results are synthetically set, don't clobber when parser ends
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 18, 2017
1 parent fb31f2a commit 4019cb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/base.js
Expand Up @@ -147,6 +147,12 @@ Base.prototype.oncomplete = function (results) {
}

this.debug('ONCOMPLETE %j %j', this.name, results)

if (this.results)
Object.keys(this.results).forEach(function (k) {
results[k] = this.results[k]
}, this)

this.results = results
this.emit('complete', results)
var failures = results.failures.filter(function (f) {
Expand Down

0 comments on commit 4019cb1

Please sign in to comment.