Closed vweevers closed 2 years ago
Huh, tap-parser
and minipass
define a buffer
property on the same object:
this.buffer = ''
— https://github.com/tapjs/tap-parser/blob/v10.1.0/index.js#L235
this.buffer = []
— https://github.com/isaacs/minipass/blob/v3.3.4/index.js#L98
So there's always been a bug here, but these modules have been narrowly escaping it somehow. Got surfaced by https://github.com/isaacs/minipass/commit/89b823ad685346795b747159661468fc1c2bd060.
Temporary workaround: https://github.com/vweevers/tap-completed/commit/3bb345a0f3b736a4134abd120feb0dc91af03366. Proper fix is TBD, awaiting feedback in https://github.com/tapjs/tap-parser/pull/86.
See last run. Something broke in airtap (I think unrelated to changes here), causing a minipass stream to have a
.buffer
that is a string instead of an array:Hopefully I can reproduce it on the tests of https://github.com/vweevers/tap-completed