mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Tim Starling 441943bd9b Do not allow access to setfenv() and getfenv() by default
Optionally remove setfenv and getfenv from the global environment in
which user code runs. This will improve the forwards-compatibility of
user code with Lua 5.2.

Porting to Lua 5.2 would still be a daunting project, of questionable
value, but at least only the internal code would need updating, and not
thousands of on-wiki modules. Compared to the environment changes, the
rest of the Lua 5.2 changes are relatively easy to simulate for
backwards compatibility.

Removed module() from the package module, since it depends on setfenv().
The native version of it is deprecated in Lua 5.2 for that reason.

Change-Id: I978903ca98943ac941833da13fe5027949f6b429
2012-05-31 15:02:04 +02: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 Do not allow access to setfenv() and getfenv() by default 2012-05-31 15:02:04 +02:00
package.lua Do not allow access to setfenv() and getfenv() by default 2012-05-31 15:02:04 +02:00