console.log("shift result: " + (Math.pow(2, 32) >>> 1));// 0
移位操作之前,会把操作数转换为32有符号整型,然后再做移位操作;
所以,操作数,高于30位的部分,会被截掉;
TODO 官方描述
参考:
https://blog.csdn.net/u014322206/article/details/84745987
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Unsigned_right_shift 返回值也是32位
https://tc39.es/ecma262/#sec-bitwise-shift-operators
https://exploringjs.com/impatient-js/ch_numbers.html#bitwise-shift-operators