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

@ -10,7 +10,7 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
const path = Deno.makeTempDirSync();
Deno.chdir(path);
const current = Deno.cwd();
if (Deno.platform.os === "mac") {
if (Deno.build.os === "mac") {
assertEqual(current, "/private" + path);
} else {
assertEqual(current, path);
@ -20,7 +20,7 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
testPerm({ write: true }, function dirCwdError() {
// excluding windows since it throws resource busy, while removeSync
if (["linux", "mac"].includes(Deno.platform.os)) {
if (["linux", "mac"].includes(Deno.build.os)) {
const initialdir = Deno.cwd();
const path = Deno.makeTempDirSync();
Deno.chdir(path);