Skip to content

Commit 4967625

Browse files
ChALkeRmertcanaltin
andcommitted
src: move all 1-byte encodings to native
Co-authored-by: Mert Can Altin <mertgold60@gmail.com>
1 parent 1d96511 commit 4967625

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/encoding.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ function makeTextDecoderJS() {
590590
this[kFlags] |= CONVERTER_FLAGS_FLUSH;
591591
}
592592

593+
input = parseInput(input);
593594
let result = this[kFlags] & CONVERTER_FLAGS_FLUSH ?
594595
this[kHandle].end(input) :
595596
this[kHandle].write(input);

0 commit comments

Comments
 (0)