summaryrefslogtreecommitdiff
path: root/std/bundle/run.ts
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-10-28 12:58:35 -0700
committerRy Dahl <ry@tinyclouds.org>2019-10-28 15:58:35 -0400
commitf484776384ad7df35ab7626b7a673f3902a6cfaa (patch)
treecb74f31550dc666ec75f5a2f95d61dc69931cb16 /std/bundle/run.ts
parent71efe6f2c530d1cb9e8a2679f5778e2c034a9d0d (diff)
Use top-level for-await in various places (#3217)
Diffstat (limited to 'std/bundle/run.ts')
-rw-r--r--std/bundle/run.ts11
1 files changed, 4 insertions, 7 deletions
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<void> {
- 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);