Ad
  • Default User Avatar

    Unlike the other bitwise operators, zero-fill right shift (>>>) returns an unsigned 32-bit integer.

    and Number.MAX_SAFE_INTEGER = 2 ** 53 - 1 does not fit on 32bits, so you are truncating it.