File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ StringDecoder.prototype.write = function(buffer) {
96
96
charStr = charBuffer . toString ( encoding , 0 , charLength ) ;
97
97
98
98
// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
99
- var charCode = charStr . charCodeAt ( charStr . length - 1 ) ;
99
+ const charCode = charStr . charCodeAt ( charStr . length - 1 ) ;
100
100
if ( charCode >= 0xD800 && charCode <= 0xDBFF ) {
101
101
charLength += surrogateSize ;
102
102
charStr = '' ;
@@ -128,8 +128,8 @@ StringDecoder.prototype.write = function(buffer) {
128
128
this . charLength = charLength ;
129
129
charStr += buffer . toString ( encoding , 0 , end ) ;
130
130
131
- var end = charStr . length - 1 ;
132
- var charCode = charStr . charCodeAt ( end ) ;
131
+ end = charStr . length - 1 ;
132
+ const charCode = charStr . charCodeAt ( end ) ;
133
133
// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
134
134
if ( charCode >= 0xD800 && charCode <= 0xDBFF ) {
135
135
charLength += surrogateSize ;
You can’t perform that action at this time.
0 commit comments