From 6696bb005134efc3784c062e268d96044a1ac9d8 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 6 Aug 2016 15:12:34 -0700 Subject: [PATCH] Remove deprecated 'raw' and 'raws' encoding https://github.com/nodejs/node/pull/2859 --- index.js | 3 --- 1 file changed, 3 deletions(-) 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': -- 2.34.1