You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah crap. Thanks so much for calling this out. I made sure the lowering worked in that case but forgot about pass-through. I like the idea in that thread of thinking of ?. as a normal infix operator, as well as . belonging to an optional chain. I'll figure out how to fix this.
It's interesting that there are as many ways to model optional chaining as there are estree contributors. No one would likely ever use parentheses in this context in real life code. Hmm... maybe it could be used as a sort of mid-expression assert.
An obscure corner of the spec as gleaned from estree/estree#204 ...
Given:
Expected:
Actual:
Down-levelling will preserve the intent of the original parentheses however:
The text was updated successfully, but these errors were encountered: