mediawiki-extensions-Scribunto/engines
Brad Jorsch 8b27dc742d Add incrementExpensiveFunctionCount() methods
To allow Lua libraries to mark functions as expensive, add an
incrementExpensiveFunctionCount() method to Scribunto_LuaEngine that
will call the corresponding Parser method and throw an error if the
limit is exceeded.

Also allow libraries to do the same thing from Lua by calling
mw.incrementExpensiveFunctionCount().

Change-Id: I56fded32b1077eff3980371e9abc9b3b7581f7b5
2013-02-01 15:55:16 -05:00
..
LuaCommon Add incrementExpensiveFunctionCount() methods 2013-02-01 15:55:16 -05:00
LuaSandbox Lua library support functions 2013-01-31 12:40:39 -05:00
LuaStandalone Lua library support functions 2013-01-31 12:40:39 -05:00