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

Missing parens in .-1 access in certain contexts #1235

Open
bbrk24 opened this issue May 9, 2024 · 0 comments
Open

Missing parens in .-1 access in certain contexts #1235

bbrk24 opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bbrk24
Copy link
Contributor

bbrk24 commented May 9, 2024

child.appendChild card.html if card? := engine.board.foundation.asc[i].-1

Actual output:

let ref;
let ref1;
if ((ref1 = ref = engine.board.foundation.asc[i][ref.length - 1]) != null) {
  const card = ref1;
  child.appendChild(card.html);
}

Expected output:

let ref;
let ref1;
if ((ref1 = (ref = engine.board.foundation.asc[i])[ref.length - 1]) != null) {
  const card = ref1;
  child.appendChild(card.html);
}
@edemaine edemaine added the bug Something isn't working label May 9, 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

2 participants