summaryrefslogtreecommitdiff
path: root/std/node/buffer.ts
diff options
context:
space:
mode:
authorSteven Guerrero <42647963+Soremwar@users.noreply.github.com>2020-07-14 13:30:03 -0500
committerGitHub <noreply@github.com>2020-07-14 14:30:03 -0400
commitfe8399973a5a1dd8a21cbb6edc88415feb83b2ef (patch)
treeb6c7caa2156bf4694471d913775d2b7bcf7b0d4c /std/node/buffer.ts
parente5724e61189b01bb373b914fb733139a399ac996 (diff)
feat(std/node): add string_decoder (#6638)
Diffstat (limited to 'std/node/buffer.ts')
-rw-r--r--std/node/buffer.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/node/buffer.ts b/std/node/buffer.ts
index dae04a66e..9c8d8784c 100644
--- a/std/node/buffer.ts
+++ b/std/node/buffer.ts
@@ -3,11 +3,11 @@ import * as base64 from "../encoding/base64.ts";
import { notImplemented, normalizeEncoding } from "./_utils.ts";
const notImplementedEncodings = [
- "utf16le",
- "latin1",
"ascii",
"binary",
+ "latin1",
"ucs2",
+ "utf16le",
];
function checkEncoding(encoding = "utf8", strict = true): string {