diff options
Diffstat (limited to 'tools/eslint/node_modules/iconv-lite/encodings/utf16.js')
-rw-r--r-- | tools/eslint/node_modules/iconv-lite/encodings/utf16.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/eslint/node_modules/iconv-lite/encodings/utf16.js b/tools/eslint/node_modules/iconv-lite/encodings/utf16.js index aa6cc716fb..7e8f1591a8 100644 --- a/tools/eslint/node_modules/iconv-lite/encodings/utf16.js +++ b/tools/eslint/node_modules/iconv-lite/encodings/utf16.js @@ -115,7 +115,7 @@ Utf16Decoder.prototype.write = function(buf) { // Codec is not chosen yet. Accumulate initial bytes. this.initialBytes.push(buf); this.initialBytesLen += buf.length; - + if (this.initialBytesLen < 16) // We need more bytes to use space heuristic (see below) return ''; @@ -173,3 +173,5 @@ function detectEncoding(buf, defaultEncoding) { return enc; } + + |