Skip to content

fix: parenthesise nullish operands - #177

Merged
43081j merged 1 commit into
mainfrom
jg/nullish-parens
Oct 19, 2026
Merged

43081j merged 1 commit into
mainfrom
jg/nullish-parens

Conversation

@43081j

@43081j 43081j commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Some expressions can cause syntax errors or logic changes if not
parenthesised. e.g. x == null ? a || b : x now becomes x ?? (a || b)
rather than x ?? a || b.

Some expressions can cause syntax errors or logic changes if not
parenthesised. e.g. `x == null ? a || b : x` now becomes `x ?? (a || b)`
rather than `x ?? a || b`.
@43081j
43081j merged commit 2843ed3 into main Oct 19, 2026
3 checks passed
@43081j
43081j deleted the jg/nullish-parens branch October 19, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant