MovingBlocks / eris

Heavy Duty Persistence for Lua 5.2 and 5.3
Other
5 stars 4 forks source link

Backport bugfixes from Lua 5.3 #1

Open gamax92 opened 6 years ago

gamax92 commented 6 years ago

This PR fixes the following bugs in Lua 5.2:

Wrong code generated for a 'goto' followed by a label inside an 'if'. Dead keys with nil values can stay in weak tables. Expression list with four or more expressions in a 'for' loop can crash the interpreter. Label between local definitions can mix-up their initializations.

All examples have been tested to verify the fix and the Lua test suite still passes 100%