mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-10 00:07:13 +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
370 B
Plaintext
16 lines
370 B
Plaintext
RUNTIME ERROR: Field name must be string, got number
|
|
-------------------------------------------------
|
|
testdata/object_comp_int_index:1:1-30 $
|
|
|
|
{ [x]: x for x in [1, 2, 3] }
|
|
|
|
-------------------------------------------------
|
|
testdata/object_comp_int_index:1:1-30
|
|
|
|
{ [x]: x for x in [1, 2, 3] }
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|