BREAKING: make Deno.hostname unstable (#5108)

This commit is contained in:
Ryan Dahl 2020-05-09 12:44:35 -04:00 committed by GitHub
parent eb505f8afc
commit b8364a2636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 10 deletions

View file

@ -97,14 +97,6 @@ declare namespace Deno {
* */
export function test(name: string, fn: () => void | Promise<void>): void;
/** Get the `hostname` of the machine the Deno process is running on.
*
* console.log(Deno.hostname());
*
* Requires `allow-env` permission.
*/
export function hostname(): string;
/** Exit the Deno process with optional exit code. If no exit code is supplied
* then Deno will exit with return code of 0.
*