diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-30 12:38:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-30 12:38:23 -0400 |
| commit | ae26a9c7a22bf3311648a93a3171f087490c6e4d (patch) | |
| tree | 8a2a4c9264cc842579375d47b915b15456845eca /cli/tests/top_level_await.ts | |
| parent | 5f7ab4884c4009943c1ede3343ab03750ea4a9e1 (diff) | |
Support top-level-await in TypeScript (#3024)
Diffstat (limited to 'cli/tests/top_level_await.ts')
| -rw-r--r-- | cli/tests/top_level_await.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/top_level_await.ts b/cli/tests/top_level_await.ts new file mode 100644 index 000000000..65de253ea --- /dev/null +++ b/cli/tests/top_level_await.ts @@ -0,0 +1,3 @@ +const buf: Uint8Array = await Deno.readFile("hello.txt"); +const n: number = await Deno.stdout.write(buf); +console.log(`\n\nwrite ${n}`); |
