Page MenuHomePhabricator

Parse error
Closed, InvalidPublic

Description

On http://ur.wikipedia.org a javascript error is thrown:
"JavaScript parse error: Parse error: Illegal token in file 'MediaWiki:Common.js' on line 839", although the mentioned page contains perfectly valid js.", although the mentioned page contains perfectly valid js.

Event Timeline

Umherirrender subscribed.

The error for 839 is "Unexpected '–'.". Same in line 1020
It is the wrong minus sign (dash vs. hyphen)

matmarex subscribed.

This is not a problem with any software maintained in Phabricator, but with the custom on-wiki JavaScript defined in https://ur.wikipedia.org/wiki/میڈیاویکی:Common.js.

And it's already fixed: https://ur.wikipedia.org/w/index.php?title=%D9%85%DB%8C%DA%88%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Common.js&diff=prev&oldid=2017907