From: Feross Aboukhadijeh Date: Sat, 6 Aug 2016 22:12:34 +0000 (-0700) Subject: Remove deprecated 'raw' and 'raws' encoding X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=6696bb005134efc3784c062e268d96044a1ac9d8;p=buffer.git Remove deprecated 'raw' and 'raws' encoding https://github.com/nodejs/node/pull/2859 --- diff --git a/index.js b/index.js index e36a5a7..6d61388 100644 --- a/index.js +++ b/index.js @@ -353,7 +353,6 @@ Buffer.isEncoding = function isEncoding (encoding) { case 'ascii': case 'binary': case 'base64': - case 'raw': case 'ucs2': case 'ucs-2': case 'utf16le': @@ -415,8 +414,6 @@ function byteLength (string, encoding) { switch (encoding) { case 'ascii': case 'binary': - case 'raw': - case 'raws': return len case 'utf8': case 'utf-8':