Rename Number.prototype.clz to Math.clz

Brendan Eich brendan at
Thu Jan 30 18:43:49 PST 2014

Qantas 94 Heavy wrote:
> Would Math.clz32 still throw a TypeError if the argument is not a 
> number, nor an object with the [[NumberData]] internal slot? Currently 
> all math functions perform ToNumber on their arguments, unlike what 
> Number.prototype.clz is currently specified to do.

ToUint32 does ToNumber in its first step 


More information about the es-discuss mailing list