From 67b9ce58aafc5a12c06cd2b34447d50ce1464f33 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 4 Jul 2018 08:30:18 -0700 Subject: [PATCH] Fix `getArrayJsValueFromWasm` exposing wrong function This needs `getUint32Memory`, not `getArrayU32FromWasm`. --- crates/cli-support/src/js/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index f2216b4fc..9acf842bb 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -1059,7 +1059,7 @@ impl<'a> Context<'a> { if !self.exposed_globals.insert("get_array_js_value_from_wasm") { return; } - self.expose_get_array_u32_from_wasm(); + self.expose_uint32_memory(); self.expose_take_object(); self.global( "