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 result in exponentiation assignment #614

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

Unexpected result in exponentiation assignment #614

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

There is an unexpected result in exponentiation assignment

let a = 3;
console.log(a **= 'hello');

expected output: NaN
got: 1

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

HalidOdat commented Aug 9, 2020

This has already been fixed in master branch when #520 landed (fixed all operation +, -, &, |, **), I'm assuming you are using version 0.9, right?

Edit: Created a PR for testing the above mentioned code also removed deprecated function #616

@HalidOdat
Copy link
Member

Closing this issue since it is fixed :)

@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