mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib
theknightwho a091b46d65 Use correct variable for error message in mw.loadJsonData
`mw.loadJsonData` in mw.lua throws an error if the input argument is
not a string. The error message should refer to the type of the input
argument `module`, not that of the variable `arg` (which is usually
undeclared, giving the type `nil`).

This also necessitates updating test `mw.loadJsonData, bad title (1)`
in CommonTests.lua, which checks for the error message if the input
is the number 0; the correct message should say "got number", not
"got nil".

Bug: T364987
Change-Id: I8362e91489a8ddc4c890e2799892f692c497c9b9
2024-05-15 14:05:32 +01:00
..
luabit LuaBit: Minor cleanup 2023-12-18 23:46:16 +00:00
ustring Capitalise Engines folder 2022-09-30 00:58:27 +00:00
bit32.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
libraryUtil.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mw.hash.lua Hide mw.hash.setupInterface from users 2022-10-08 22:01:00 +00:00
mw.html.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mw.language.lua LanguageLibrary: Ensure language code is a string 2024-04-11 16:20:24 +00:00
mw.lua Use correct variable for error message in mw.loadJsonData 2024-05-15 14:05:32 +01:00
mw.message.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mw.site.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mw.text.lua Synchronize mw.text.nowiki() with wfEscapeWikiText in core 2024-02-15 05:29:36 +00:00
mw.title.lua mw.title: add pageLang property 2024-01-17 18:20:06 +00:00
mw.uri.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mw.ustring.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
mwInit.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
package.lua Capitalise Engines folder 2022-09-30 00:58:27 +00:00
strict.lua Add strict.lua to replace "Module:No globals" 2022-10-13 04:39:21 +00:00