nushell/crates/nu-protocol/tests
Ian Manske 493850b1bf
Fix IR for try (#13811)
# 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.
2024-09-09 19:44:04 -07:00
..
into_config.rs Refactor and fix Config<->Value mechanism (#10896) 2023-11-08 20:31:30 +01:00
test_config.rs Fix IR for try (#13811) 2024-09-09 19:44:04 -07:00
test_pipeline_data.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
test_signature.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
test_value.rs Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00