Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: Fixed bug in Number::unsignedRightShift #1955

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

jhnaldo
Copy link
Contributor

@jhnaldo jhnaldo commented Apr 19, 2020

In the previous version ES2019, The Unsigned Right Shift Operator(>>>) utilize ToUint32 for both left and right expressions. However, the current version apply ToUint32 for only the right number value but use ToInt32 for the left number value in Number::unsignedRightShift. I think it breaks the backward compatibility thus I revised the semantics of Number::unsignedRightShift to use ToUint32 for both left and right number value.

@michaelficarra michaelficarra added editor call to be discussed in the next editor call es2020 spec bug labels Apr 20, 2020
@ljharb ljharb requested review from syg, bakkot and a team April 22, 2020 21:37
Copy link
Contributor

@syg syg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ljharb ljharb self-assigned this Apr 22, 2020
@ljharb ljharb force-pushed the bug-in-number-unsignedrightshift branch from 35030f4 to 16387ec Compare April 22, 2020 21:53
@ljharb ljharb added normative change Affects behavior required to correctly evaluate some ECMAScript source text and removed editor call to be discussed in the next editor call labels Apr 22, 2020
@ljharb ljharb merged commit 16387ec into tc39:master Apr 22, 2020
@caiolima
Copy link
Contributor

Sorry for late comment here. I confirm this was a bug introduced with BigInt PR. Thanks for fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative change Affects behavior required to correctly evaluate some ECMAScript source text spec bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants