From de1a10e5f7afe793a66b2349642ea135fc066104 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Wed, 6 Mar 2019 13:54:58 -0800 Subject: Reorganize version and platform into Deno.build and Deno.version (#1879) --- js/write_file_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/write_file_test.ts') 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"; -- cgit v1.2.3