1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
denoland-deno/cli/tests/016_double_await.ts

9 lines
305 B
TypeScript
Raw Normal View History

2018-10-05 19:28:31 -04:00
// This is to test if Deno would die at 2nd await
// See https://github.com/denoland/deno/issues/919
(async (): Promise<void> => {
const currDirInfo = await Deno.stat(".");
const parentDirInfo = await Deno.stat("..");
console.log(currDirInfo.isDirectory);
console.log(parentDirInfo.isFile);
2018-10-05 19:28:31 -04:00
})();