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.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/std/wasi/snapshot_preview1_test_runner.ts b/std/wasi/snapshot_preview1_test_runner.ts
index fb29f082e..b85fdc11c 100644
--- a/std/wasi/snapshot_preview1_test_runner.ts
+++ b/std/wasi/snapshot_preview1_test_runner.ts
@@ -15,6 +15,8 @@ const instance = new WebAssembly.Instance(module, {
wasi_snapshot_preview1: context.exports,
});
-context.memory = instance.exports.memory;
+const memory = instance.exports.memory as WebAssembly.Memory;
+context.memory = memory;
-instance.exports._start();
+const start = instance.exports._start as CallableFunction;
+start();