blob: 36776773604d2e8e5ea236f0a99e97eb8063a19a (
plain)
1
2
3
4
5
6
7
8
9
10
|
import * as deno from "deno";
// This is to test if Deno would die at 2nd await
// See https://github.com/denoland/deno/issues/919
(async () => {
const currDirInfo = await deno.stat(".");
const parentDirInfo = await deno.stat("..");
console.log(currDirInfo.isDirectory());
console.log(parentDirInfo.isFile());
})();
|