google / google/go-jsonnet

tailstrict does not prevent blowing the stack

Open
#145 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.