Rename Number.prototype.clz to Math.clz

Brendan Eich brendan at mozilla.com
Thu Jan 16 19:20:09 PST 2014


Jason Orendorff wrote:
>> >  What is Math.bitlen(-1) then? Isn’t this just the same problem as before, except it happens for negative numbers instead of positive?
>
> No opinion.

Not sure it matters. We could return -1 for any negative number, 0 for 
0, and > 0 for positive integral values.

/be


More information about the es-discuss mailing list