nushell/crates/nu-engine
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
..
src Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
Cargo.toml Bump to new development version 0.73.1 (#7544) 2022-12-21 12:35:50 -06:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00