Skip to content

Commit

Permalink
choir: Updated to match result
Browse files Browse the repository at this point in the history
  • Loading branch information
Koby committed Mar 9, 2023
1 parent 7ddae4c commit 2c158f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ pub fn compile(args: JsValue) -> JsValue {

<JsValue as JsValueSerdeExt>::from_serde(&collected_compiled_programs).unwrap()
} else {
let main = driver.main_function();
let main =
driver.main_function().unwrap_or_else(|_| panic!("Could not find main function!"));
let compiled_program = driver
.compile_no_check(&options.compile_options, main)
.unwrap_or_else(|_| panic!("Compilation failed"));
Expand Down

0 comments on commit 2c158f9

Please sign in to comment.