Go to file
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
.phan build: Remove suppression of PhanUndeclaredProperty for Parser property 2024-04-23 02:06:26 +00:00
i18n Localisation updates from https://translatewiki.net. 2024-05-15 09:22:12 +02:00
includes Use correct variable for error message in mw.loadJsonData 2024-05-15 14:05:32 +01:00
modules Use ES6 features, replace jQuery bind() with on() 2024-04-20 03:18:34 +08:00
tests Use correct variable for error message in mw.loadJsonData 2024-05-15 14:05:32 +01:00
.eslintrc.json Use ES6 features, replace jQuery bind() with on() 2024-04-20 03:18:34 +08:00
.gitignore build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 10:40:41 -07:00
.gitreview
.phpcs.xml tests: Replace assertEmpty with assertCount 2022-11-25 10:26:34 +00:00
.stylelintrc.json
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 21:33:35 +00:00
composer.json build: Updating dependencies 2024-05-10 22:19:13 +00:00
COPYING Add strict.lua to replace "Module:No globals" 2022-10-13 04:39:21 +00:00
extension.json Inject services into ApiScribuntoConsole, CodeEditorHooks and Hooks 2024-03-18 04:40:47 +00:00
Gruntfile.js Use ES6 features, replace jQuery bind() with on() 2024-04-20 03:18:34 +08:00
package-lock.json build: Updating dependencies 2024-05-10 22:19:13 +00:00
package.json build: Updating dependencies 2024-05-10 22:19:13 +00:00
Scribunto.constants.php Remove PHP entry point 2019-06-21 00:02:08 +00:00
Scribunto.magic.php Add namespace and magic word translations for mnw and my 2019-10-18 20:03:05 +00:00
Scribunto.namespaces.php Translate Scribunto namespaces into Uzbek (uz) 2023-05-24 22:19:24 +00:00