mirror of
https://github.com/google/go-jsonnet.git
synced 2026-04-18 11:51:34 +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.
16 lines
415 B
Plaintext
16 lines
415 B
Plaintext
RUNTIME ERROR: Operator % cannot be used on types number and string.
|
|
-------------------------------------------------
|
|
<std>:239:7-94 function <anonymous>
|
|
|
|
error 'Operator % cannot be used on types ' + std.type(a) + ' and ' + std.type(b) + '.',
|
|
|
|
-------------------------------------------------
|
|
testdata/percent_bad:1:1-9
|
|
|
|
42 % "x"
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|