v0.13.8

getfenv

functionimplementedavailable in: camelot

Returns the current environment in use by the function.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
ffunctionor number - A function to retrieve the environment of, or a numeric level of a function on the call stack starting from 1.

Returns

env · table? · The environment assigned to the function.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.