Javascript: Optional Chaining

  • Community Edition
  • Version 8.2

Error:
Expected an assignment or function call and instead saw an expression.

onClose?.()

Does not appear to understand this proposal:

Which we used frequently throughout our code base, so we get a lot of false positives due to not recognizing the above as a valid function.

Hi @Smoothsmith, thanks for raising this problem.

We’re aware of this FP and I believe it’s related to this ticket on GitHub.

I linked your post there.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.