Support more fetch init body types (#1449)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-01-03 06:41:20 -05:00 committed by Ryan Dahl
parent 5b9c488921
commit 8d452d74fa
4 changed files with 91 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import * as domTypes from "./dom_types";
import { containsOnlyASCII } from "./util";
import { TextEncoder } from "./text_encoding";
const bytesSymbol = Symbol("bytes");
export const bytesSymbol = Symbol("bytes");
export class DenoBlob implements domTypes.Blob {
private readonly [bytesSymbol]: Uint8Array;