diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-07 22:29:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 22:29:12 -0500 |
commit | 0dd131d4a512e8e8370b571d6801eabb4cb30e58 (patch) | |
tree | 24471f2f1c33cd6516b0cd1bc8efeb07576b83ad /cli/js/tls_test.ts | |
parent | 8d1ba3552fbbcae9284fdab63cc6613045684d01 (diff) |
Rename perm to mode (#4276)
There's a lot of variation in doc comments and internal code about
whether chmod/0o777-style permissions are called `mode` or `perm`. (For
example, mkdir and writeFile choose differently.)
Had proposed earlier to go consistently with `perm`, but on balance devs
prefer to go with `mode`.
Diffstat (limited to 'cli/js/tls_test.ts')
-rw-r--r-- | cli/js/tls_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/tls_test.ts b/cli/js/tls_test.ts index a60e18507..99900ab57 100644 --- a/cli/js/tls_test.ts +++ b/cli/js/tls_test.ts @@ -105,7 +105,7 @@ unitTest( const testDir = Deno.makeTempDirSync(); const keyFilename = testDir + "/key.pem"; Deno.writeFileSync(keyFilename, new Uint8Array([]), { - perm: 0o666 + mode: 0o666 }); try { @@ -134,7 +134,7 @@ unitTest( const testDir = Deno.makeTempDirSync(); const certFilename = testDir + "/cert.crt"; Deno.writeFileSync(certFilename, new Uint8Array([]), { - perm: 0o666 + mode: 0o666 }); try { |