mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
Add failing test for #919.
This commit is contained in:
parent
8fba254c7a
commit
f1989c68a0
2 changed files with 12 additions and 0 deletions
10
tests/016_double_await.ts
Normal file
10
tests/016_double_await.ts
Normal 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());
|
||||
})();
|
2
tests/016_double_await.ts.out
Normal file
2
tests/016_double_await.ts.out
Normal file
|
@ -0,0 +1,2 @@
|
|||
true
|
||||
false
|
Loading…
Reference in a new issue