Fixed tostring on userdata in LuaJ.

This commit is contained in:
Florian Nücke 2016-03-19 14:41:13 +01:00
parent 8d0db7b629
commit cc02d69320

View File

@ -1055,7 +1055,7 @@ local userdataWrapper = {
__metatable = "userdata", __metatable = "userdata",
__tostring = function(self) __tostring = function(self)
local data = wrappedUserdata[self] local data = wrappedUserdata[self]
return tostring(select(2, pcall(data.toString, data))) return tostring(select(2, pcall(tostring, data)))
end end
} }