varMAX_ALLOC=Math.pow(2,30)-1// default in iojsmodule.exports=function(iterations,keylen){if(typeofiterations!=='number'){thrownewTypeError('Iterations not a number')}if(iterations<0){thrownewTypeError('Bad iterations')}if(typeofkeylen!=='number'){thrownewTypeError('Key length not a number')}if(keylen<0||keylen>MAX_ALLOC||keylen!==keylen){/* eslint no-self-compare: 0 */thrownewTypeError('Bad key length')}}