From 3137e14a85a7af644f47fafe63c303d8716f5a4e Mon Sep 17 00:00:00 2001 From: Folkert Date: Tue, 25 Jan 2022 13:37:30 +0100 Subject: [PATCH] another test fix --- compiler/test_gen/src/helpers/wasm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/test_gen/src/helpers/wasm.rs b/compiler/test_gen/src/helpers/wasm.rs index 21d6c6b36c..c7d6f5cfb2 100644 --- a/compiler/test_gen/src/helpers/wasm.rs +++ b/compiler/test_gen/src/helpers/wasm.rs @@ -117,14 +117,14 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32TestResult>( .. } = loaded; - debug_assert_eq!(exposed_to_host.len(), 1); + debug_assert_eq!(exposed_to_host.values.len(), 1); - let exposed_to_host = exposed_to_host.keys().copied().collect::>(); + let exposed_to_host = exposed_to_host.values.keys().copied().collect::>(); let env = roc_gen_wasm::Env { arena, module_id, - exposed_to_host, + exposed_to_host.values, }; let (mut module, called_preload_fns, main_fn_index) =