mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
rename called_preload_fns to called_fns
This commit is contained in:
parent
c16d425936
commit
a3cfdd478d
3 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue