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

multi assignment expressions are evaluated twice #1344

Open
JayXon opened this issue Aug 7, 2024 · 1 comment
Open

multi assignment expressions are evaluated twice #1344

JayXon opened this issue Aug 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JayXon
Copy link

JayXon commented Aug 7, 2024

a=[]
b=0
(a[b++]?=1)++
console.log a,b

prints

[
  1,
  null
] 2

https://civet.dev/playground?code=YT1bXQpiPTAKKGFbYisrXT89MSkrKwpjb25zb2xlLmxvZyBhLGI%3D

@edemaine
Copy link
Collaborator

edemaine commented Aug 7, 2024

This is #50 (comment)

Good reminder to step up the priority on this, but I'll close these in favor of #50.

@edemaine edemaine closed this as completed Aug 7, 2024
@STRd6 STRd6 reopened this Nov 1, 2024
@edemaine edemaine added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants