Skip to content
Snippets Groups Projects
Commit 5e13b02a authored by Georgiy Lebedev's avatar Georgiy Lebedev Committed by Serge Petrenko
Browse files

lua: always try to serialize extensions using `luaL_convertfield`

Currently, we delegate the work of serializing extensions to serializers in
case of known extensions. In case of unknown extensions we try to convert
them from Lua using the serialization and string conversion metamethods.

However, there are cases where we would prefer to do the serialization in
Lua instead of delegating to serializers. Let's always try to serialize
extensions first using Lua via `luaL_convertfield`, and, if it fails, or
the conversion returns an extension again, fallback to the serializers.

Needed for #9105

NO_CHANGELOG=<refactoring>
NO_DOC=<refactoring>
NO_TEST=<refactoring>
parent 610f5fb7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment