nushell/crates/nu-protocol/src/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
..
call_info.rs
capture_block.rs Split blocks and closures (#7075) 2022-11-10 21:21:49 +13:00
command.rs fix plugin detection in help commands (#7088) 2022-11-10 16:12:09 -06:00
engine_state.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
mod.rs Add environment change hook (#5600) 2022-05-21 09:49:42 +12:00
overlay.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
stack.rs Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00