serpent/t
Peter Melnichenko ecf3b48c83 Fixed incorrect sref name used for tables within table keys
`insref` argument of `val2str` explicitly sets name to use for a value
within the self reference section when it is seen again.

It's necessary to provide it for table keys, as they can only be
referenced through the `iname` storage table. For values sref name
can be calculated based on sref of the parent table and the key.

When serializing normal values (key is not a table or another special type),
`insref` was passed as is to the recursive `val2str` call. This is incorrect
when `insref` is actually present (i.e. parent table is a table key
or a value for a table key), the values should get their own sref names
instead of the parent name. Passing `nil` instead is enough to fix this.

Fixes #28, closes #30.
2018-04-23 20:57:22 -07:00
..
bench.lua Added options to configure serialization process 2012-06-12 23:17:44 -07:00
test.lua Fixed incorrect sref name used for tables within table keys 2018-04-23 20:57:22 -07:00