Make gen_wasm's Env mutable

This commit is contained in:
Brian Carroll 2021-11-29 11:15:20 +00:00
parent f4d52f7084
commit e7d8c7c895
5 changed files with 27 additions and 14 deletions

View file

@ -504,14 +504,14 @@ fn gen_from_mono_module_dev_wasm32(
.copied()
.collect::<MutSet<_>>();
let env = roc_gen_wasm::Env {
let mut env = roc_gen_wasm::Env {
arena,
module_id,
interns,
exposed_to_host,
};
let bytes = roc_gen_wasm::build_module(&env, procedures).unwrap();
let bytes = roc_gen_wasm::build_module(&mut env, procedures).unwrap();
std::fs::write(&app_o_file, &bytes).expect("failed to write object to file");