Closed Wojbie closed 1 year ago
Well, this is embarrassing. It only uses the array part. I suspect the fix here is to shift everything to use rawget
/rawset
instead of indexing array
directly.
Technically we should actually be supporting __index
/__newindex
here. Ughrhrhrrh.
Found this issue when i was messing with table.sort.
This code generates this output in Cobalt. As one can see second table is not getting sorted... While in other lua instances it creates:
This seems to imply there is something wrong with table related logic in Cobalt.