diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-03-06 13:54:58 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-06 16:54:58 -0500 |
commit | de1a10e5f7afe793a66b2349642ea135fc066104 (patch) | |
tree | 3d91d82a62808f744fc189705110a50d7d8d478e /js/write_file_test.ts | |
parent | 91364cabae8687e7620edac406b43cb40cb55878 (diff) |
Reorganize version and platform into Deno.build and Deno.version (#1879)
Diffstat (limited to 'js/write_file_test.ts')
-rw-r--r-- | js/write_file_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/write_file_test.ts b/js/write_file_test.ts index ba136bf5d..67419a7f6 100644 --- a/js/write_file_test.ts +++ b/js/write_file_test.ts @@ -45,7 +45,7 @@ testPerm({ write: false }, function writeFileSyncPerm() { }); testPerm({ read: true, write: true }, function writeFileSyncUpdatePerm() { - if (Deno.platform.os !== "win") { + if (Deno.build.os !== "win") { const enc = new TextEncoder(); const data = enc.encode("Hello"); const filename = Deno.makeTempDirSync() + "/test.txt"; @@ -146,7 +146,7 @@ testPerm({ read: true, write: false }, async function writeFilePerm() { }); testPerm({ read: true, write: true }, async function writeFileUpdatePerm() { - if (Deno.platform.os !== "win") { + if (Deno.build.os !== "win") { const enc = new TextEncoder(); const data = enc.encode("Hello"); const filename = Deno.makeTempDirSync() + "/test.txt"; |