tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.24k stars 84 forks source link

Add a recursion limit to background evaluation #1878

Closed jneem closed 3 months ago

jneem commented 3 months ago

Adds a recursion limit (currently hardcoded to 128) to the background evaluator in nls. This limit applies to recursion in arrays or records, not to recursive function calls.

This might fix #1875 (it's hard to tell, as I can't reproduce it). But independent of that, it avoids a crash and preserves eval diagnostics.