From aec5a646c9218a0a0da62cbcd1f28bc23c242540 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sun, 27 Oct 2019 06:04:42 -0700 Subject: feat: top-level-for-await (#3212) --- cli/tests/045_proxy_client.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cli/tests/045_proxy_client.ts') diff --git a/cli/tests/045_proxy_client.ts b/cli/tests/045_proxy_client.ts index 3d7003750..221ac57f6 100644 --- a/cli/tests/045_proxy_client.ts +++ b/cli/tests/045_proxy_client.ts @@ -1,7 +1,3 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -async function main(): Promise { - const res = await fetch("http://localhost:4545/std/examples/colors.ts"); - console.log(`Response http: ${await res.text()}`); -} - -main(); +const res = await fetch("http://localhost:4545/std/examples/colors.ts"); +console.log(`Response http: ${await res.text()}`); -- cgit v1.2.3