Just be careful on taking the manuals as a normative reference, I used
I am not sure I understand. Why I should not take manuals as a reference?
(BTW it is true that code never lies, comments sometime do)
It's not that you shouldn't take it as a reference. It's that the Lua manual only documents the intended behaviors. It doesn't document anything about implementation details, unexpected gotchas to watch out for, or how Lua acts outside of the documented behaviors.
There's a reasonable argument that the manual shouldn't be expected to do anything but document the intended behaviors, so this isn't meant to be a criticism. It just isn't the ultimate answer for every question you might have about the language, and it isn't trying to be.
/s/ Adam