1
0
mirror of https://github.com/nushell/nushell.git synced 2025-05-20 18:00:49 +02:00
nushell/crates/nu-parser/tests
zc he 02fcc485fb
fix(parser): skip eval_const if parsing errors detected to avoid panic ()
Fixes   

# Description

Early returns `NotAConstant` if parsing errors exist in the
subexpression.

I'm not sure when the span of a block will be None, and whether there're
better ways to handle none block spans, like a more suitable ShellError
type.

# User-Facing Changes

# Tests + Formatting

+1, but possibly not the easiest way to do it.

# After Submitting
2025-03-26 15:02:26 +01:00
..
test_lex.rs 14523 all comments should be prefixed with space tab or be beginning of token () 2024-12-25 21:31:51 +08:00
test_parser_unicode_escapes.rs IO and redirection overhaul () 2024-03-14 15:51:55 -05:00
test_parser.rs fix(parser): skip eval_const if parsing errors detected to avoid panic () 2025-03-26 15:02:26 +01:00