nushell/crates/nu-engine/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
..
call_ext.rs Remove shape-directed import pattern parsing (#7570) 2022-12-22 16:36:13 +02:00
column.rs Add values command (see #7166) (#7583) 2022-12-23 12:49:19 -06:00
documentation.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
env.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
eval.rs Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
glob_from.rs Run a round of clippy --fix to fix a ton of lints (#7006) 2022-11-04 15:11:17 -05:00
lib.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
scope.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00