mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-08 07:17:12 +02:00
Fixes multiple issues with stack traces leading to missing stack trace lines. Also, we no longer put builtin context on the line which *calls* the builtin as if it was a part of the builtin itself. Code for stack trace handling was centralized. We no longer need traceElement argument in ~every function. Now the stack trace state is kept solely in the interpreter.
21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
RUNTIME ERROR: a
|
|
-------------------------------------------------
|
|
testdata/std.flatmap5:1:21-28 function <failWith>
|
|
|
|
local failWith(x) = error x;
|
|
|
|
-------------------------------------------------
|
|
testdata/std.flatmap5:2:10-48 thunk from <$>
|
|
|
|
std.type(std.flatMap(failWith, ["a", "b", "c"]))
|
|
|
|
-------------------------------------------------
|
|
testdata/std.flatmap5:2:1-49 $
|
|
|
|
std.type(std.flatMap(failWith, ["a", "b", "c"]))
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|