Reorganize version and platform into Deno.build and Deno.version (#1879)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-03-06 13:54:58 -08:00 committed by Ryan Dahl
parent 91364cabae
commit de1a10e5f7
14 changed files with 52 additions and 83 deletions

View file

@ -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";