1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-04 22:48:41 +02:00
nushell/crates/nu-engine
Amirhossein Akhlaghpour 00469de93e
Limit recursion to avoid stack overflow ()
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 

Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-01-04 18:38:50 -08:00
..
src Limit recursion to avoid stack overflow () 2023-01-04 18:38:50 -08:00
Cargo.toml Bump to new development version 0.73.1 () 2022-12-21 12:35:50 -06:00
LICENSE Include license text in all crates () 2022-04-08 10:47:13 +02:00