From f484776384ad7df35ab7626b7a673f3902a6cfaa Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Mon, 28 Oct 2019 12:58:35 -0700 Subject: Use top-level for-await in various places (#3217) --- std/bundle/run.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'std/bundle') diff --git a/std/bundle/run.ts b/std/bundle/run.ts index fb848a671..b5fc433c9 100644 --- a/std/bundle/run.ts +++ b/std/bundle/run.ts @@ -2,10 +2,7 @@ import { evaluate, instantiate, load } from "./utils.ts"; -async function main(args: string[]): Promise { - const text = await load(args); - const result = evaluate(text); - instantiate(...result); -} - -main(Deno.args); +const args = Deno.args; +const text = await load(args); +const result = evaluate(text); +instantiate(...result); -- cgit v1.2.3