Skip to content

Commit 4019cb1

Browse files
committed
If results are synthetically set, don't clobber when parser ends
1 parent fb31f2a commit 4019cb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/base.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ Base.prototype.oncomplete = function (results) {
147147
}
148148

149149
this.debug('ONCOMPLETE %j %j', this.name, results)
150+
151+
if (this.results)
152+
Object.keys(this.results).forEach(function (k) {
153+
results[k] = this.results[k]
154+
}, this)
155+
150156
this.results = results
151157
this.emit('complete', results)
152158
var failures = results.failures.filter(function (f) {

0 commit comments

Comments
 (0)