mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 09:21:03 +02:00
This pulls in the implementation of substr into native Go instead of interpretted Jsonnet. benchmark old ns/op new ns/op delta Benchmark_Builtin_substr-16 97121527 15115905 -84.44% part of #111
11 lines
313 B
Plaintext
11 lines
313 B
Plaintext
RUNTIME ERROR: substr third parameter should be greater than zero, got -1
|
|
-------------------------------------------------
|
|
testdata/builtinSubStr_third_parameter_less_then_zero:1:1-27 builtin function <substr>
|
|
|
|
std.substr("hello", 0, -1)
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|