Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

koonuf

Member since
koonuf

Recent Docs Activity

View all activity
Page Date Comment

Math.log2()


Fixed previous revision error. I only needed whole number values on bit masks, so suggested that polyfill should be wrapped in Math.round, which is obviously wrong unless you are working with bit masks

Math.log2()


Wrapping polyfill function expression into Math.round. Without doing this, polyfill produces incorrect values on some inputs, like 1 << 29