[javascript mode] Drop expected tokens when running into ), }, or ]
[javascript mode] Drop expected tokens when running into ), }, or ]

Issue #5431

hackmdio/CodeMirror,codio/CodeMirror,wingify/CodeMirror,wingify/CodeMirror,namin/CodeMirror,mtaran-google/CodeMirror,thomasjm/CodeMirror,mtaran-google/CodeMirror,SidPresse/CodeMirror,jkaplon/CodeMirror,SidPresse/CodeMirror,codio/CodeMirror,jkaplon/CodeMirror,jkaplon/CodeMirror,dperetti/CodeMirror,dperetti/CodeMirror,notepadqq/CodeMirror,pabloferz/CodeMirror,wingify/CodeMirror,namin/CodeMirror,hackmdio/CodeMirror,SidPresse/CodeMirror,mtaran-google/CodeMirror,pabloferz/CodeMirror,dperetti/CodeMirror,codio/CodeMirror,hackmdio/CodeMirror,namin/CodeMirror,pabloferz/CodeMirror,thomasjm/CodeMirror,notepadqq/CodeMirror,nightwing/CodeMirror,nightwing/CodeMirror,nightwing/CodeMirror,thomasjm/CodeMirror,notepadqq/CodeMirror