Page MenuHomePhabricator

TypeError: Object.values is not a function
Closed, DuplicatePublicBUG REPORT

Description

A large amount of errors (8,345 in last 7 days, top error on mobile web) are occurring relating to this issue. The majority coming from the gadget https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-EditNoticesOnMobile.js
https://logstash.wikimedia.org/goto/72d06e4268576413761281470b4a00cc

Perhaps we should require a check for Object.values as part of our grade A support ?

The user agents don't completely match up with https://caniuse.com/object-values so it's possible something else is playing a part here. Majority of issues appearing in Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1 despite caniuse says the function should be available there.

Stack trace:

at Object.enom.getNotice  <anonymous>:24:364
at HTMLAnchorElement.<anonymous>  <anonymous>:32:285
at HTMLAnchorElement.jQuery.event.dispatch  https://en.m.wikipedia.org/w/load.php?lang=en&modules=jquery&skin=minerva&version=3ozn9:70:260
at HTMLAnchorElement.elemData.handle  https://en.m.wikipedia.org/w/load.php?lang=en&modules=jquery&skin=minerva&version=3ozn9:66:877