mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
Reorganize version and platform into Deno.build and Deno.version (#1879)
This commit is contained in:
parent
91364cabae
commit
de1a10e5f7
14 changed files with 52 additions and 83 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue