Skip to content

Commit

Permalink
Add failing test for denoland#919.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo authored and ry committed Oct 7, 2018
1 parent 8fba254 commit f1989c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/016_double_await.ts
Original file line number Diff line number Diff line change
@@ -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());
})();
2 changes: 2 additions & 0 deletions tests/016_double_await.ts.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
true
false

0 comments on commit f1989c6

Please sign in to comment.