Skip to content
This repository was archived by the owner on Nov 10, 2018. It is now read-only.
This repository was archived by the owner on Nov 10, 2018. It is now read-only.

getfenv/setfenv fail when pcalled with a stack level of 1 #462

@matthewdean

Description

@matthewdean
print(getfenv(1))
--> table: 17546A48

print(pcall(getfenv,1))
--> false bad argument #1 to '?' (invalid level)

The same applies to setfenv:

env = getfenv(1)
setfenv(1,env)
--> no output

print(pcall(setfenv,1,env))
--> false bad argument #1 to '?' (invalid level)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions