tailstrict does not prevent blowing the stack
Open
enhancement
- Dominant language
- Go
- Stars
- 1.8k
- Forks
- 263
- PR merge metrics
- No merged PRs in 30d
Description
```
$ go-jsonnet --max-stack 7 -e 'local f(n, c=0) = if n == 0 then c else f(n - 1, c + n) tailstrict; f(100)'
RUNTIME ERROR: Max stack frames exceeded.
:979:29-30 thunk from from >>
builtin function
:981:33-35 thunk from >
builtin function
:981:12-40 function
:1:69-75 $
During evaluation
```
When fixed, remove special go golden for test_cmd case max_trace4
Contributor guide
Assessment
This issue has not been assessed yet.