mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
493850b1bf
# Description Fixes a bug in the IR for `try` to match that of the regular evaluator (continuing from #13515): ```nushell # without IR: try { ^false } catch { 'caught' } # == 'caught' # with IR: try { ^false } catch { 'caught' } # error, non-zero exit code ``` In this PR, both now evaluate to `caught`. For the implementation, I had to add another instruction, and feel free to suggest better alternatives. In the future, it might be possible to get rid of this extra instruction. # User-Facing Changes Bug fix, `try { ^false } catch { 'caught' }` now works in IR. |
||
---|---|---|
.. | ||
into_config.rs | ||
test_config.rs | ||
test_pipeline_data.rs | ||
test_signature.rs | ||
test_value.rs |