I caught the error stack listed below.
I have no idea why and when and how to reproduce, but the reason is rather obvious.
Error: Cannot convert 'rnds' to object
Caused in rMW/resources/src/mediawiki.user.js Lines 52...63
- var rnds has been declared.
- The true branch of if will initialize rnds = new Uint16Array( 5 );
- The else branch does not initialize rnds.
- It starts assigning Array elements: rnds[ i ] =
Blaming: rMW29c803227f0daea2664c16966596c012b303cec2
Parts of stack trace following:
Error thrown at line 118, column 20690 in <anonymous function: generateRandomSessionId>() rnds[i]=Math.floor(Math.random()*0x10000) called from line 296, column 1198 in getToken() token=mw.user.generateRandomSessionId(); called from line 296, column 1191 in <anonymous function> userToken=getToken(); called from line 296, column 391 in <anonymous function> (function($,mw){var isMobile=mw.config.get('skin')==='minerva',userToken,trackedFeatures={},userSampling=10;function getToken(){var keyName='wmE-GeoFeaturesUser',token=mw.storage.session.get(keyName),parts=token&&token.split('|'),now=Date.now(),cut=now-(10*60*1000);if(parts&&parts[1]>=cut){return parts[0];}token=mw.user.generateRandomSessionId();mw.storage.session.set(keyName,token+'|'+now);return token;}userToken=getToken();function oneIn(sessionId,populationSize){var parsed=parseInt(sessionId.slice(0,13),16);return parsed%populationSize===0;}function randomOneIn(populationSize){var rand=mw.user. called from line 95, column 165 in <anonymous function: runScript>() called from line 96, column 527 in execute(module) execute(m); called from line 94, column 1624 in <anonymous function: markModuleReady>() handlePending(module); called from line 95, column 234 in <anonymous function: runScript>() markModuleReady(); called from line 96, column 527 in execute(module)