From f1989c68a075804a99d5b820b42643b7c43099da Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Fri, 5 Oct 2018 16:28:31 -0700 Subject: [PATCH] Add failing test for #919. --- tests/016_double_await.ts | 10 ++++++++++ tests/016_double_await.ts.out | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 tests/016_double_await.ts create mode 100644 tests/016_double_await.ts.out diff --git a/tests/016_double_await.ts b/tests/016_double_await.ts new file mode 100644 index 0000000000..3677677360 --- /dev/null +++ b/tests/016_double_await.ts @@ -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()); +})(); diff --git a/tests/016_double_await.ts.out b/tests/016_double_await.ts.out new file mode 100644 index 0000000000..da29283aaa --- /dev/null +++ b/tests/016_double_await.ts.out @@ -0,0 +1,2 @@ +true +false