1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-02 11:17:46 +01:00
liquid/values
nsf 1a2066b87e Properly handle variadic functions.
This commit addresses two issues:

1. For variadic functions 'convertCallArguments' was allocating exactly
   'len(args)' arguments, which might be less than required, as a result
   zero/default filling loop would panic with out of bounds error.

2. Even if we correctly allocate a proper amount of arguments, zero/default
   filling loop doesn't handle special variadic function type case, when last
   argument has a slice type and reflect API expects plain values as arguments.
   But actually we don't need that, because it's okay to omit variadic values
   altogether, hence the total amount of allocated arguments is
   max(len(args), rt.NumIn()-1).
2018-05-30 19:44:29 +05:00
..
arrays.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
call_test.go Properly handle variadic functions. 2018-05-30 19:44:29 +05:00
call.go Properly handle variadic functions. 2018-05-30 19:44:29 +05:00
compare_test.go Nil pointers are equal, even if different types 2017-08-09 08:42:42 -04:00
compare.go Nil pointers are equal, even if different types 2017-08-09 08:42:42 -04:00
convert_test.go Convert tests 2017-08-23 15:56:27 -04:00
convert.go Convert MapSlice -> map 2017-08-21 15:06:35 -04:00
docs.go Package docs 2017-08-08 16:42:32 -04:00
drop_test.go Race test, benchmarks, for drop resolution 2017-08-03 15:20:56 +02:00
drop.go Actually cache the drop resolution 2017-08-03 15:20:56 +02:00
evaluator_test.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
mapslicevalue.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
parsedate_test.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
parsedate.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
predicates_test.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
predicates.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
range.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
sort.go Move pkg evaluator -> values 2017-07-27 18:11:37 -04:00
structvalue_test.go Fix struct PropertyValue attempting to use an invalid pointer 2017-08-01 11:27:32 +10:00
structvalue.go variable names 2017-08-23 15:56:18 -04:00
value_test.go map[unhashable] returns nil instead of panic 2017-08-23 16:03:46 -04:00
value.go map[unhashable] returns nil instead of panic 2017-08-23 16:03:46 -04:00