mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-08 07:17:12 +02:00
* Location, error formatting and stack trace improvements * Static context for AST nodes * Thunks no longer need `name` * Prototype for showing snippets in error messages (old format still available) * Use ast.Function to represent methods and local function sugar. * Change tests so that the error output is pretty
16 lines
382 B
Plaintext
16 lines
382 B
Plaintext
RUNTIME ERROR: xxx
|
|
-------------------------------------------------
|
|
testdata/error_in_method:1:23-30 function <anonymous>
|
|
|
|
local obj = { foo(x): error x }; obj.foo("xxx")
|
|
|
|
-------------------------------------------------
|
|
testdata/error_in_method:1:34-48 $
|
|
|
|
local obj = { foo(x): error x }; obj.foo("xxx")
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|