Hello,
I'm reading the implementation of string.buffer, and the implementation and
the description <https://luajit.org/ext_buffer.html> to be in conflict.
For a mixed table, there are two format for serialization (from
description<https://luajit.org/ext_buffer.html>):
*
0x0b a.U a*object h.U h*{object object}
*
0x0d a.U (a-1)*object h.U h*{object object}
However, the implementation is:
*
0x0b a.U h.U a*object h*{object object}
*
0x0d a.U h.U (a-1)*object h*{object object}
https://github.com/LuaJIT/LuaJIT/blob/d06beb0480c5d1eb53b3343e78063950275aa281/src/lj_serialize.c#L227-L234
Is the spec on the website outdated?