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
293 B
Plaintext
11 lines
293 B
Plaintext
RUNTIME ERROR: substr first parameter should be a string, got number
|
|
-------------------------------------------------
|
|
testdata/builtinSubStr_first_param_not_string:1:1-20 builtin function <substr>
|
|
|
|
std.substr(1, 0, 1)
|
|
|
|
-------------------------------------------------
|
|
During evaluation
|
|
|
|
|