tostring not work for Table And Userdata if has metatable #97

Closed
opened 2021-11-30 16:24:28 +00:00 by caffeine-mgn · 0 comments
caffeine-mgn commented 2021-11-30 16:24:28 +00:00 (Migrated from github.com)

Methods tostring of classes org.luaj.vm2.LuaTable and org.luaj.vm2.LuaUserdata work wrong if there has metatable.

LuaUserdata calls m_instance.toString()
LuaTable throws exception

both classes should return result of __tostring of his metatable

Methods `tostring` of classes `org.luaj.vm2.LuaTable` and `org.luaj.vm2.LuaUserdata` work wrong if there has metatable. `LuaUserdata` calls `m_instance.toString()` `LuaTable` throws exception both classes should return result of `__tostring` of his metatable
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-autonomous-connection/luaj#97