debug.getregistry
Example
Let's try to find the global table (_G) inside the registry (_R).
Output: table: 0xcece1d62
true
Returns the internal Lua registry table.
The Lua registry is used by the engine and binary modules to create references to Lua values. The registry contains every global ran and used in the Lua environment. Avoid creating entries into the registry with a number as the key, as they are reserved for the reference system.
Let's try to find the global table (_G) inside the registry (_R).