mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Update format_answer call in repl_wasm
This commit is contained in:
parent
7f1efae6e0
commit
71bb6b3e7d
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ use roc_load::MonomorphizedModule;
|
|||
use roc_parse::ast::Expr;
|
||||
use roc_repl_eval::{
|
||||
eval::jit_to_ast,
|
||||
gen::{compile_to_mono, format_answer, ReplOutput},
|
||||
gen::{compile_to_mono, format_answer},
|
||||
ReplApp, ReplAppMemory,
|
||||
};
|
||||
use roc_reporting::report::DEFAULT_PALETTE_HTML;
|
||||
|
@ -288,7 +288,7 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
|
|||
|
||||
// Transform the Expr to a string
|
||||
// `Result::Err` becomes a JS exception that will be caught and displayed
|
||||
let ReplOutput { expr, expr_type } = format_answer(arena, res_answer, expr_type_str);
|
||||
let expr = format_answer(arena, res_answer);
|
||||
|
||||
Ok(format!("{expr} : {expr_type}{var_name}"))
|
||||
Ok(format!("{expr} : {expr_type_str}{var_name}"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue