MetatablesOverview
getrawmetatable
Represents access to raw metatable metadata.
Details#
Returns a value's actual metatable, including when __metatable masks ordinary getmetatable access. Returns nil when no metatable exists; the table reference is shared.
Examples#
Example
local value = setmetatable({}, { __metatable = "locked", label = "docs" })
print(getrawmetatable(value).label) -- docs