Add failing test for #919.

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2018-10-05 16:28:31 -07:00 committed by Ryan Dahl
parent 8fba254c7a
commit f1989c68a0
2 changed files with 12 additions and 0 deletions

10
tests/016_double_await.ts Normal file
View file

@ -0,0 +1,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());
})();

View file

@ -0,0 +1,2 @@
true
false