-
-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
getfenv
meta definition is incomplete.
---#DES 'getfenv'
---@param f? async fun()
---@return table
---@nodiscard
In here, it states that getfenv
only accepts a function as its only parameter.
Meanwhile the 5.1 manual states:
Returns the current environment in use by the function. f can be a Lua function or a number that specifies the function at that stack level: Level 1 is the function calling getfenv. If the given function is not a Lua function, or if f is 0, getfenv returns the global environment. The default for f is 1.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working