mirror of
https://github.com/denoland/deno
synced 2024-08-24 18:47:06 +00:00
Add failing test for #919.
This commit is contained in:
parent
8fba254c7a
commit
f1989c68a0
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