Files
node/lib
Anatoli Papirovski e782715d0a string_decoder: fix regressions
There are libraries which invoke StringDecoder using .call and
.inherits, which directly conflicts with making StringDecoder
be a class which can only be invoked with the new keyword.
Revert to declaring it as a function.

StringDecoder#lastNeed was not defined, redefine it using
the new interface and fix StringDecoder#lastTotal.

PR-URL: https://github.com/nodejs/node/pull/18723
Refs: https://github.com/nodejs/node/pull/18537
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
2018-02-13 08:03:23 -05:00
..
2018-02-07 12:21:42 -05:00
2018-02-09 08:45:51 -05:00
2017-12-24 14:09:29 +08:00
2017-08-28 00:39:42 +04:00
2018-02-08 13:38:05 -05:00
2017-03-10 11:23:48 -08:00
2018-01-31 18:36:43 +01:00
2018-01-30 17:00:57 -08:00
2018-02-04 16:55:13 +01:00