mirror of
https://github.com/denoland/deno.git
synced 2025-08-01 17:42:32 +00:00
add notImplemented and unreachable util functions (#540)
This commit is contained in:
parent
aaabc853e8
commit
66f0e93b4c
4 changed files with 16 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue