Prototype: support booleans
This commit is contained in:
parent
8080b79b68
commit
cceeebbe82
@ -42,7 +42,7 @@ function Prototype:__tostring()
|
||||
end
|
||||
end
|
||||
return "{"..r.."}"
|
||||
elseif t=="number" then
|
||||
elseif t=="number" or t=="boolean" then
|
||||
return tostring(self)
|
||||
elseif t=="string" then
|
||||
return "\""..self:gsub("\\","\\\\"):gsub("\"","\\\"").."\""
|
||||
|
Loading…
Reference in New Issue
Block a user