arcticfox1919 / LuaDardo

A Lua virtual machine written in Dart
Apache License 2.0
176 stars 34 forks source link

Refactored LuaTable implementation (New source branch) #19

Open Mytrin opened 1 year ago

Mytrin commented 1 year ago

Greetings,

I've decided to fix https://github.com/arcticfox1919/LuaDardo/issues/10. First commit of this MR contains a simple test, which proves that "next keys" map is not reinitialized after insertion of new key.

I ended up extracting parts of LuaTable to their own classes, so lazy initialization and null checks are encapsulated and easier to maintain.