summaryrefslogtreecommitdiff
path: root/js/copy_file_test.ts
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-02 11:26:18 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-02 14:26:18 -0500
commit0b082c4361c63768e5b8610cb22ad7c79e9214aa (patch)
tree7112e5bbe8bde2f316c8d5ef155acee0fa282cfe /js/copy_file_test.ts
parent7ecd665ddf9e2a3d04dc5e65c57d05539ecf786d (diff)
Clarify writeFile options and avoid unexpected perm modification (#1643)
Diffstat (limited to 'js/copy_file_test.ts')
-rw-r--r--js/copy_file_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/copy_file_test.ts b/js/copy_file_test.ts
index 02f13c6f3..bdc455f45 100644
--- a/js/copy_file_test.ts
+++ b/js/copy_file_test.ts
@@ -11,7 +11,7 @@ function readFileString(filename: string): string {
function writeFileString(filename: string, s: string) {
const enc = new TextEncoder();
const data = enc.encode(s);
- deno.writeFileSync(filename, data, 0o666);
+ deno.writeFileSync(filename, data, { perm: 0o666 });
}
function assertSameContent(filename1: string, filename2: string) {