chmod should throw on Windows (#4446)

This commit is contained in:
dubiousjim 2020-03-20 16:03:04 -04:00 committed by GitHub
parent b22f48970f
commit 77a44163fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 23 deletions

View file

@ -950,7 +950,7 @@ declare namespace Deno {
*
* For a full description, see [chmod](#chmod)
*
* NOTE: This API currently has no effect on Windows
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmodSync(path: string, mode: number): void;
@ -978,7 +978,7 @@ declare namespace Deno {
* | 1 | execute only |
* | 0 | no permission |
*
* NOTE: This API currently has no effect on Windows
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmod(path: string, mode: number): Promise<void>;