mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Brad Jorsch b6ea64f132 Make mw.getCurrentFrame() work in console, add frame:newChild()
It would be helpful for debugging if a frame object could be gotten in
the console. To that end, add an empty frame when running in the console
and allow it to be returned by mw.getCurrentFrame().

It would also be helpful to be able to create frames with arbitrary
arguments, again for testing. Fortunately support for creating child
frames with arbitrary arguments already exists in core, so we can just
use it.

And for good measure, be sure to restore the $engine->currentFrames
array even if the Lua code throws an exception.

Change-Id: I1dc8602d63af75424f267c42a3743fabbc1827f7
2013-03-12 14:42:36 +11:00
..
luabit Clean up lualibs 2013-02-28 18:39:16 -08:00
ustring Fix ustring errors 2013-03-05 12:22:15 -05:00
bit32.lua Add requirable bit32 library 2013-03-05 01:36:17 +00:00
libraryUtil.lua Lua library support functions 2013-01-31 12:40:39 -05:00
mw.language.lua Add language functions 2013-03-04 21:14:34 -05:00
mw.lua Make mw.getCurrentFrame() work in console, add frame:newChild() 2013-03-12 14:42:36 +11:00
mw.message.lua Add mw.message library 2013-02-26 22:20:04 -08:00
mw.site.lua Fix further non-local effects of library registration 2013-02-13 15:40:18 +11:00
mw.title.lua (bug 45774) Add title.fileExists, improve title.exists 2013-03-08 10:33:35 -05:00
mw.uri.lua Fix mw.uri error with empty fragment or query string 2013-03-05 01:44:10 +00:00
mw.ustring.lua Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
package.lua Fix package.loaded and other cleanups 2013-01-30 17:24:09 +00:00