diff options
author | Peter Evers <pevers90@gmail.com> | 2020-05-29 08:27:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 02:27:57 -0400 |
commit | fe7d6824c91b0c2b45c1248fc58847250f6c9f42 (patch) | |
tree | 82b62fe1e89e78c8a962e30549836466331a0a0e /cli/js | |
parent | 55311c33c486a6f6fac296d92803d745f8afec04 (diff) |
fix DenoBlob name (#5879)
Diffstat (limited to 'cli/js')
-rw-r--r-- | cli/js/web/blob.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cli/js/web/blob.ts b/cli/js/web/blob.ts index 546ea7e82..899c67135 100644 --- a/cli/js/web/blob.ts +++ b/cli/js/web/blob.ts @@ -161,7 +161,7 @@ async function readBytes( // Ensures it does not impact garbage collection. export const blobBytesWeakMap = new WeakMap<Blob, Uint8Array>(); -export class DenoBlob implements Blob { +class DenoBlob implements Blob { [bytesSymbol]: Uint8Array; readonly size: number = 0; readonly type: string = ""; @@ -216,3 +216,11 @@ export class DenoBlob implements Blob { return readBytes(getStream(this[bytesSymbol]).getReader()); } } + +// we want the Base class name to be the name of the class. +Object.defineProperty(DenoBlob, "name", { + value: "Blob", + configurable: true, +}); + +export { DenoBlob }; |