Space Lua: Align length features with standard Lua (#1637)

* Align `#` operator and `__len` metamethod with Lua and add `rawlen` function

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
This commit is contained in:
Matouš Jan Fialka
2025-10-21 09:55:38 +02:00
committed by GitHub
parent 0e4141e22e
commit 9292ae4b74
6 changed files with 244 additions and 11 deletions
+4
View File
@@ -9,6 +9,10 @@ Deno.test("[Lua] Core language", async () => {
await runLuaTest("./language_core_test.lua");
});
Deno.test("[Lua] Core language (length)", async () => {
await runLuaTest("./len_test.lua");
});
Deno.test("[Lua] Core language (truthiness)", async () => {
await runLuaTest("./truthiness_test.lua");
});