From a451a97486e4cd9c311cef2c016137dcff672522 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Mon, 31 Aug 2020 18:04:47 +0800 Subject: fix(cli): use upstream type definitions for WebAssembly (#7216) --- std/wasi/snapshot_preview1_test_runner.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'std') 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(); -- cgit v1.2.3