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

Parse error for unsigned right shift assignment #621

Closed
elasmojs opened this issue Aug 9, 2020 · 4 comments · Fixed by #711
Closed

Parse error for unsigned right shift assignment #621

elasmojs opened this issue Aug 9, 2020 · 4 comments · Fixed by #711
Assignees
Labels
bug Something isn't working enhancement New feature or request execution Issues or PRs related to code execution good first issue Good for newcomers parser Issues surrounding the parser

Comments

@elasmojs
Copy link
Contributor

elasmojs commented Aug 9, 2020

Hi,

Following code results in parse error;

let a = 5; //  00000000000000000000000000000101

a >>>= 2;  //  00000000000000000000000000000001
console.log(a);
// expected output: 1

let b = -5; // -00000000000000000000000000000101

b >>>= 2;   //  00111111111111111111111111111110
console.log(b);
// expected output: 1073741822

thanks

@elasmojs elasmojs added the bug Something isn't working label Aug 9, 2020
@HalidOdat HalidOdat added the execution Issues or PRs related to code execution label Aug 9, 2020
@HalidOdat
Copy link
Member

This is Fixed on master branch

@Razican Razican modified the milestone: v0.10.0 Sep 2, 2020
@Razican
Copy link
Member

Razican commented Sep 2, 2020

Actually, the >>>= and >>> operators are not yet implemented. I'm re-opening this.

@Razican Razican reopened this Sep 2, 2020
@Razican Razican added enhancement New feature or request parser Issues surrounding the parser good first issue Good for newcomers labels Sep 2, 2020
@HalidOdat
Copy link
Member

HalidOdat commented Sep 2, 2020

Actually, the >>>= and >>> operators are not yet implemented. I'm re-opening this.

I must have only checked for >>> 😅 .
The >>>= is not implemented but >>> is (in #520). >>>= should be easy to implement.

@arpit-saxena
Copy link
Contributor

I would like to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request execution Issues or PRs related to code execution good first issue Good for newcomers parser Issues surrounding the parser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants