Support importing local files in the REPL

This commit is contained in:
Agus Zubiaga 2024-04-26 23:33:14 -03:00
parent e500d664fd
commit 52f84910a7
No known key found for this signature in database
5 changed files with 57 additions and 10 deletions

View file

@ -203,6 +203,9 @@ pub async fn entrypoint_from_js(src: String) -> String {
ReplAction::Exit => {
"To exit the web version of the REPL, just close the browser tab!".to_string()
}
ReplAction::FileProblem { .. } => {
"The web version of the REPL cannot import files... for now!".to_string()
}
ReplAction::Nothing => String::new(),
ReplAction::Eval { opt_mono, problems } => {
let opt_output = match opt_mono {