mherkender/lua.js — pull request #8 by jimbauwens (2012-04-19 08:43:07+00:00)
Title: Table corruption when changing arraystate.

In strange cases 'i' is a string. i + 1 becomes a string operation, and doesn't work as expected.

This causes tables to get corrupted.

Example lua script that suffers from this:

a = {1,2,3,4,5,6,7,8,9}
a[1] = 1337

for i=1, 9 do
print(a[i])
end

This will print
1337
null
null
null
null
null
..