rename called_preload_fns to called_fns

This commit is contained in:
Brian Carroll 2022-11-21 19:48:02 +00:00
parent c16d425936
commit a3cfdd478d
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
3 changed files with 9 additions and 9 deletions

View file

@ -244,7 +244,7 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
.collect::<MutSet<_>>(),
};
let (mut module, called_preload_fns, main_fn_index) = {
let (mut module, mut called_fns, main_fn_index) = {
let host_module = roc_gen_wasm::parse_host(env.arena, PRE_LINKED_BINARY).unwrap();
roc_gen_wasm::build_app_module(
&env,
@ -263,7 +263,7 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
&main_fn_layout.result,
);
module.eliminate_dead_code(env.arena, called_preload_fns);
module.eliminate_dead_code(env.arena, called_fns);
let mut buffer = Vec::with_capacity_in(module.size(), arena);
module.serialize(&mut buffer);