527ca6545d6863b45ce09a86cd757a0fbfcb513b
Two issues: (1) When resizing, clearSlot() needs to be used to correctly move affected hash entries. (2) table.maxn is documented as returning the largest numeric key in the table. This requires a linear scan through the entire table, but the Lua documentation explicitly warns about that.
Description
Lightweight, fast, Java-centric Lua interpreter written for JME and JSE, with string, table, package, math, io, os, debug, coroutine & luajava libraries, JSR-223 bindings, all metatags, weak tables and unique direct lua-to-java-bytecode compiling. Forked GitHub Repository: https://github.com/luaj/luaj
https://luaj.sourceforge.net/
MIT
17 MiB