Issue #3335653 by mherchel, Spokje: commit-code-check.sh doesn't allow optional chaining in JavaScript (cherry picked from commit 91c7840b)