Files
plainleaf/client
Matouš Jan Fialka 8cecd0985c [Space Lua] tostring() respects __tostring metamethod with live stack frame
`tostring()` was delegating to `luaToString()` which calls `__tostring`
with a dead stack frame, breaking metamethods that call back into
globals. Now `tostringFunction` receives the live stack frame, looks up
`__tostring` via `rawGet`, calls it through `luaCall` with the live
frame, and validates the return is a string.

Also add tests covering the basic case, the nested-call case, and the
error path for a non-string return.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-02-20 07:59:16 +01:00
..
2025-09-19 13:23:20 +02:00
2026-01-31 17:07:35 +01:00
2025-09-19 13:23:20 +02:00
2025-10-22 15:35:37 +02:00
2025-09-19 13:23:20 +02:00
2026-01-07 11:00:32 +01:00
2026-01-29 11:07:28 +01:00
2025-10-31 09:13:24 +01:00
2025-10-31 09:13:24 +01:00
2025-09-19 13:23:20 +02:00
2025-09-19 13:23:20 +02:00
2025-09-19 13:23:20 +02:00
2025-09-29 15:30:38 +02:00
WIP
2026-01-20 13:48:15 +01:00

SilverBullet-specific code that is shared between server and client