sindresorhus / get-stream

Get a stream as a string, Buffer, ArrayBuffer or array
MIT License
341 stars 33 forks source link

Add tests for the slow path of `getStreamAsArrayBuffer()` #100

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

This adds tests for the slow path of getStreamAsArrayBuffer(), i.e. the logic used in environments where ArrayBuffer.resize() is not available.

ehmicky commented 1 year ago

I just realized: this is not needed, since Node 16/18 do not have ArrayBuffer.resize(), and we test on those Node versions. :man_facepalming: