From f8d83361cd11d3aa42333171ecb6b129fdcbefeb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 24 Apr 2020 19:55:33 -0400 Subject: chdir should require --allow-write (#4889) --- cli/js/lib.deno.ns.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/js/lib.deno.ns.d.ts') diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 493ebd5e2..64e3613f5 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -405,9 +405,6 @@ declare namespace Deno { export function cwd(): string; /** - * **UNSTABLE**: Currently under evaluation to decide if explicit permission is - * required to change the current working directory. - * * Change the current working directory to the specified path. * * Deno.chdir("/home/userA"); @@ -417,6 +414,8 @@ declare namespace Deno { * Throws `Deno.errors.NotFound` if directory not found. * Throws `Deno.errors.PermissionDenied` if the user does not have access * rights + * + * Requires --allow-write. */ export function chdir(directory: string): void; -- cgit v1.2.3