3 Commits
Author SHA1 Message Date
waozi 8033702823 Borrow VM strings through std so wasm32 sees their length
The VM built string views from a hand-written { *u8, u64 } descriptor,
which on wasm32 (size_t lengths) read every string as empty. Views now go
through std's BytesFromPointer, which uses the target's slice layout.

The object records and LuaSyntaxNode are private again, now that the
toolchain (locked to 88b505bf) handles Vecs of module-private records.
`make wasm` builds the VM for the web platform with Emscripten and runs
it in a private headless Chromium as part of `make test`.
2026-11-07 02:48:50 -03:00
waozi 4b1ab58056 Document the embedding API and test it from the host
Unit tests cover values, tables, natives, userdata finalizers, errors,
refs, environments, the print sink, hooks, the memory limit and native
yields. LuaReplace now resolves its index before popping, the collector
never lets the heap pass max_memory unchecked, and strings accept
LuaJIT's \u{XXX} escapes.
2026-11-07 01:46:57 -03:00
waozi 01b6aa9096 Test the Lua VM with conformance scripts and the Katalis mods
make test builds three runners: API smoke checks, every tests/lua script
in a fresh state, and a load check of each .lua file under the Katalis
mods folder (KATALIS_MODS overrides the path).
2026-11-07 01:37:42 -03:00