nushell/crates/nu-protocol/src
Amirhossein Akhlaghpour 00469de93e
Limit recursion to avoid stack overflow (#7657)
Add recursion limit to `def` and `block`.
Summary of this PR , it will detect if `def` call itself or not .
Then execute by using `stack` which I think best choice to use with this
design and core as it is available in all crates and mutable and
calculate the recursion limit on calling `def`.
Set 50 as recursion limit on `Config`.
Add some tests too .

Fixes #5899

Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-01-04 18:38:50 -08:00
..
ast Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
engine Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
value Make get hole errors and cell path hole errors identical (improvement on #7002) (#7647) 2023-01-02 14:45:43 -08:00
cli_error.rs Clippy fix for Rust 1.63 (#6299) 2022-08-11 11:54:54 -05:00
config.rs Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
example.rs Start support for commandline args to nu itself (#851) 2022-01-27 01:42:39 +11:00
exportable.rs Removes export env command (#6468) 2022-09-25 19:52:43 +03:00
id.rs Overlays (#5375) 2022-05-08 07:39:22 +12:00
lev_distance.rs Improve "Did you mean?" suggestions (#6579) 2022-09-20 19:46:01 -05:00
lib.rs Improve "Did you mean?" suggestions (#6579) 2022-09-20 19:46:01 -05:00
module.rs Removes export env command (#6468) 2022-09-25 19:52:43 +03:00
pipeline_data.rs Make get hole errors and cell path hole errors identical (improvement on #7002) (#7647) 2023-01-02 14:45:43 -08:00
shell_error.rs Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
signature.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
span.rs Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
syntax_shape.rs sort enums add missing items to parse_shape_name (#7450) 2022-12-13 10:46:22 -06:00
ty.rs sort enums add missing items to parse_shape_name (#7450) 2022-12-13 10:46:22 -06:00
variable.rs Limited mutable variables (#7089) 2022-11-11 19:51:08 +13:00