summaryrefslogtreecommitdiff
path: root/std/wasi/snapshot_preview1_test_runner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/wasi/snapshot_preview1_test_runner.ts')
-rw-r--r--std/wasi/snapshot_preview1_test_runner.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/std/wasi/snapshot_preview1_test_runner.ts b/std/wasi/snapshot_preview1_test_runner.ts
deleted file mode 100644
index a211fa378..000000000
--- a/std/wasi/snapshot_preview1_test_runner.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-import Context from "./snapshot_preview1.ts";
-
-const options = JSON.parse(Deno.args[0]);
-const pathname = Deno.args[1];
-const binary = await Deno.readFile(pathname);
-const module = await WebAssembly.compile(binary);
-
-const context = new Context({
- env: options.env,
- args: [pathname].concat(options.args),
- preopens: options.preopens,
-});
-
-const instance = new WebAssembly.Instance(module, {
- "wasi_snapshot_preview1": context.exports,
-});
-
-context.start(instance);