Use alternate TextEncoder/TextDecoder implementation (#1281)

This is faster and smaller.
This commit is contained in:
Kitson Kelly 2018-12-07 05:01:15 +11:00 committed by Ryan Dahl
parent 60c008d23b
commit 6cc89b9e27
9 changed files with 366 additions and 42 deletions

View file

@ -1,6 +1,7 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types";
import { containsOnlyASCII } from "./util";
import { TextEncoder } from "./text_encoding";
const bytesSymbol = Symbol("bytes");