mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Tim Starling 41b93dd7e1 Fixed setfenv() across a tail call
Fixed the issue noticed during testing of da06273e, and which resulted
in satest.setfenv1() being disabled. It's not possible to protect
environments by iterating through every stack level, calling getfenv()
at each one, because if any of the stack levels is a tail call, an error
is raised.

Such a tail call was introduced in da06273e, which is why the test broke.

Instead, just protect the actual specified environments, not their
callers. The callers will have to protect themselves.

Change-Id: If39104010ff2663c1bae5105cc8d37e276532100
2012-04-24 12:33:06 +10:00
..
luabit Added more Lua environment features 2012-04-18 13:46:18 +10:00
stringtools Added more Lua environment features 2012-04-18 13:46:18 +10:00
mw.lua Fixed setfenv() across a tail call 2012-04-24 12:33:06 +10:00
package.lua Added more Lua environment features 2012-04-18 13:46:18 +10:00