1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00

Use Utf8 instead of ASCII in TextDecoder

See https://github.com/denoland/deno/issues/1288

Original: 718d1da853
This commit is contained in:
Ryan Dahl 2018-12-06 14:35:41 -05:00
parent 79a1de9b14
commit a34bc9040d

View file

@ -6,7 +6,7 @@
import { BufReader, BufState } from "./bufio.ts";
import { charCode } from "./util.ts";
const asciiDecoder = new TextDecoder("ascii");
const asciiDecoder = new TextDecoder();
function str(buf: Uint8Array): string {
if (buf == null) {
return "";