nushell/crates/nu-engine/src
Devyn Cairns a59477205d
Fix try: Add set_last_error() to prepare_error_handler() for IR eval (#13838)
# Description

Fixes a bug with `set_last_error()` introduced by @IanManske not being
called during the jump to an error handler in IR eval. Without this,
`$env.LAST_EXIT_CODE` wasn't getting set in the `catch` block for an
external.

# Tests + Formatting

Added a `tests/eval` test to cover this in both IR and non-IR eval
2024-09-13 00:07:22 -07:00
..
compile Fix IR for try (#13811) 2024-09-09 19:44:04 -07:00
call_ext.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
closure_eval.rs Use Arc for environment variables on the stack (#13333) 2024-07-10 17:34:50 -07:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
command_prelude.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
documentation.rs Improve help output for scripts (#13445) 2024-08-23 21:08:27 +02:00
env.rs Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
eval_helpers.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_ir.rs Fix try: Add set_last_error() to prepare_error_handler() for IR eval (#13838) 2024-09-13 00:07:22 -07:00
eval.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
glob_from.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
scope.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00