Files
node/lib
Marcos Casagrande a47ee80114 stream: convert string to Buffer when calling unshift(<string>)
`readable.unshift` can take a string as an argument, but that
string wasn't being converted to a Buffer, which caused a
<TypeError: Argument must be a buffer> in some cases. Also if a
string was passed, that string was coerced to utf8 encoding.

A second optional argument `encoding` was added to `unshift` to
fix the encoding issue.

Fixes: https://github.com/nodejs/node/issues/27192
PR-URL: https://github.com/nodejs/node/pull/27194
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-06-03 13:14:24 +02:00
..
2019-06-02 15:15:23 +02:00
2019-05-07 20:37:39 +02:00
2019-04-30 17:47:27 +02:00
2018-11-20 10:42:31 -08:00
2019-04-18 05:32:10 +02:00
2018-07-16 15:55:15 -07:00
2019-04-29 16:57:36 +02:00
2019-05-20 13:20:20 +02:00