From 16387ec787ad6be47dbe45245143e4b38ac55672 Mon Sep 17 00:00:00 2001 From: jhnaldo Date: Sun, 19 Apr 2020 13:23:37 +0900 Subject: [PATCH] Normative: Fixed bug in Number::unsignedRightShift (#1955) --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index bce932452e..54dc140c49 100644 --- a/spec.html +++ b/spec.html @@ -1692,7 +1692,7 @@

Number::signedRightShift ( _x_, _y_ )

Number::unsignedRightShift ( _x_, _y_ )

- 1. Let _lnum_ be ! ToInt32(_x_). + 1. Let _lnum_ be ! ToUint32(_x_). 1. Let _rnum_ be ! ToUint32(_y_). 1. Let _shiftCount_ be the result of masking out all but the least significant 5 bits of _rnum_, that is, compute _rnum_ & 0x1F. 1. Return the result of performing a zero-filling right shift of _lnum_ by _shiftCount_ bits. Vacated bits are filled with zero. The result is an unsigned 32-bit integer.