mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Remove the whole #var1 thing
This commit is contained in:
parent
f4937e72cc
commit
074401fbdf
11 changed files with 39 additions and 185 deletions
|
@ -203,23 +203,13 @@ pub async fn entrypoint_from_js(src: String) -> String {
|
|||
"To exit the web version of the REPL, just close the browser tab!".to_string()
|
||||
}
|
||||
ReplAction::Nothing => String::new(),
|
||||
ReplAction::Eval {
|
||||
opt_mono,
|
||||
problems,
|
||||
opt_var_name,
|
||||
} => {
|
||||
ReplAction::Eval { opt_mono, problems } => {
|
||||
let opt_output = match opt_mono {
|
||||
Some(mono) => eval_wasm(arena, target_info, mono).await,
|
||||
None => None,
|
||||
};
|
||||
let dimensions = None; // TODO: we could get the window dimensions from JS...
|
||||
format_output(
|
||||
HTML_STYLE_CODES,
|
||||
opt_output,
|
||||
problems,
|
||||
opt_var_name,
|
||||
dimensions,
|
||||
)
|
||||
|
||||
format_output(HTML_STYLE_CODES, opt_output, problems)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue