Steps to replicate the issue (include links if applicable):
- Navigate to plwiki
- Type mw.loader.load('ext.gadget.wp_sk-T358946') in browser console
What happens?:
An error is displayed in the console:
ext.gadget.wp_sk-script-0.js:
Parse error: Unexpected \ on line 910
What should have happened instead?:
The gadget should have been loaded as it used to before wmf.20 deployment
Software version (skip for WMF-hosted wikis like Wikipedia): wmf.20
Other information (browser name/version, screenshots, etc.):
The linter complains about this line: https://pl.wikipedia.org/wiki/MediaWiki:Gadget-sk.js#L-910 which is syntactically correct. The file hasn't been changed significantly for a few weeks and all the recent changes in that file were to overcome this error.
The error is present in ResourceLoader output, implying that the linter fails to recognize something in the code: https://pl.wikipedia.org/w/load.php?lang=pl&modules=ext.gadget.wp_sk-T358946&skin=vector
The error has been firstly reported after an hour of deploying MediaWiki 1.42-wmf.20 to plwiki.
(Edited the task to use a gadget copy, the main one has been hotfixed)