2 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