Fix wasm repl tests

This commit is contained in:
Brian Carroll 2022-11-21 19:48:23 +00:00
parent a3cfdd478d
commit a35e912c0a
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7

View file

@ -262,6 +262,7 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
main_fn_index,
&main_fn_layout.result,
);
called_fns.push(true);
module.eliminate_dead_code(env.arena, called_fns);