diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-08-19 21:04:27 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-19 15:04:27 -0400 |
commit | 66f0e93b4c1e1364097a4eaf2b1e3bbb1bf43714 (patch) | |
tree | 2dcfb7736ab253a38bd349554b277f5da652cf0b /js/fetch.ts | |
parent | aaabc853e84a03f72208c0e80634bd986c3ca4e2 (diff) |
add notImplemented and unreachable util functions (#540)
Diffstat (limited to 'js/fetch.ts')
-rw-r--r-- | js/fetch.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/fetch.ts b/js/fetch.ts index 7fe7be22b..48696778e 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -4,7 +4,8 @@ import { log, createResolvable, Resolvable, - typedArrayToArrayBuffer + typedArrayToArrayBuffer, + notImplemented, } from "./util"; import { pubInternal, sub } from "./dispatch"; import { deno as pb } from "./msg.pb"; @@ -46,11 +47,11 @@ class FetchResponse implements Response { } blob(): Promise<Blob> { - throw Error("not implemented"); + notImplemented(); } formData(): Promise<FormData> { - throw Error("not implemented"); + notImplemented(); } async json(): Promise<object> { @@ -69,7 +70,7 @@ class FetchResponse implements Response { } clone(): Response { - throw Error("not implemented"); + notImplemented(); } onHeader: (res: Response) => void; |