summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/016_double_await.ts10
-rw-r--r--tests/016_double_await.ts.out2
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/016_double_await.ts b/tests/016_double_await.ts
new file mode 100644
index 000000000..367767736
--- /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 000000000..da29283aa
--- /dev/null
+++ b/tests/016_double_await.ts.out
@@ -0,0 +1,2 @@
+true
+false