mediawiki-extensions-Scribunto/engines
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
..
LuaCommon Fixed setfenv() across a tail call 2012-04-24 12:33:06 +10:00
LuaSandbox Nicer errors with backtraces etc. 2012-04-23 21:58:30 +10:00
LuaStandalone Fix Windows support: 2012-04-24 04:47:53 +04:00