try() callback loses the fenv environment
š Luaā¢Updated 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.