mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
BREAKING: Remove Deno.EOF, use null instead (#4953)
This commit is contained in:
parent
47c2f034e9
commit
678313b176
46 changed files with 329 additions and 325 deletions
|
@ -379,8 +379,3 @@ export function unimplemented(msg?: string): never {
|
|||
export function unreachable(): never {
|
||||
throw new AssertionError("unreachable");
|
||||
}
|
||||
|
||||
export function assertNotEOF<T extends {}>(val: T | Deno.EOF): T {
|
||||
assertNotEquals(val, Deno.EOF);
|
||||
return val as T;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue