mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
List.get with negative index in repl
This commit is contained in:
parent
917e0e2027
commit
b0d57587e3
8 changed files with 109 additions and 33 deletions
|
@ -128,7 +128,7 @@ macro_rules! run_jit_function {
|
|||
Err((error_msg, _)) => {
|
||||
eprintln!("This Roc code crashed with: \"{error_msg}\"");
|
||||
|
||||
Expr::MalformedClosure
|
||||
Expr::REPL_RUNTIME_CRASH
|
||||
}
|
||||
}
|
||||
}};
|
||||
|
@ -165,10 +165,10 @@ macro_rules! run_jit_function_dynamic_type {
|
|||
let result = Result::from(call_result);
|
||||
|
||||
match result {
|
||||
Ok(()) => $transform(output.add(CALL_RESULT_WIDTH) as usize),
|
||||
Err((msg, _crash_tag)) => {
|
||||
eprintln!("{}", msg);
|
||||
panic!("Roc hit an error");
|
||||
Ok(()) => Some($transform(output.add(CALL_RESULT_WIDTH) as usize)),
|
||||
Err((error_msg, _)) => {
|
||||
eprintln!("This Roc code crashed with: \"{error_msg}\"");
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue