šŸ’¬

Community answer

Collected from the ACE community Discord archive around 2018-08-19. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

try() callback loses the fenv environment

šŸŒ™ LuaUpdated 2 days ago•0 views
try executes in the main thread so it behaves normally there, but inside an fenv/setfenv environment it ignores the defined environment - the callback doesn't i…

Why does the function called by try() not have the setfenv environment

try executes in the main thread so it behaves normally there, but inside an fenv/setfenv environment it ignores the defined environment - the callback doesn't inherit the custom env.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.