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

Unexpected output for rightshift assignment #618

Closed
elasmojs opened this issue Aug 9, 2020 · 2 comments
Closed

Unexpected output for rightshift assignment #618

elasmojs opened this issue Aug 9, 2020 · 2 comments
Labels
bug Something isn't working execution Issues or PRs related to code execution
Milestone

Comments

@elasmojs
Copy link
Contributor

elasmojs commented Aug 9, 2020

Hi

let a = 5;      //  00000000000000000000000000000101
a >>= 2;        //  00000000000000000000000000000001
console.log(a); // expected output: 1, got: 20

let b = -5;     // -00000000000000000000000000000101
b >>= 2;        // -00000000000000000000000000000010
console.log(b); // expected output: -2, got: -20

thanks

@elasmojs elasmojs added the bug Something isn't working label Aug 9, 2020
@HalidOdat
Copy link
Member

HalidOdat commented Aug 9, 2020

Hi @elasmojs , thanks for reporting these issues.

This has been fixed on master branch when #520 landed ;)

Would it be possible to use Code blocks in comment so its more readable , and state what version of boa you are tesing this on example v0.9, master (latest)

@HalidOdat HalidOdat added the execution Issues or PRs related to code execution label Aug 9, 2020
@HalidOdat
Copy link
Member

This has been fixed so closing this issue.

@Razican Razican added this to the v0.10.0 milestone Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working execution Issues or PRs related to code execution
Projects
None yet
Development

No branches or pull requests

3 participants