Scripts & runtimeOverview
getrenv
Represents access to the host runtime environment.
Details#
Returns the host runtime environment, distinct from the module's getgenv table. It resolves global names rather than the local variables or captured upvalues of a particular call.
Examples#
Example
local environment = getrenv()
print(type(environment)) -- table