mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-10 00:07:13 +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
312 B
Plaintext
11 lines
312 B
Plaintext
RUNTIME ERROR: substr second parameter should be an integer, got 1.200000
|
|
-------------------------------------------------
|
|
testdata/builtinSubStr_second_parameter_not_integer:1:1-28 builtin function <substr>
|
|
|
|
std.substr("hello", 1.2, 5)
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|