Skip to content

Commit 23695f2

Browse files
committed
Fix bug in previous patch
Issue #5556
1 parent eaf3a7e commit 23695f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/javascript/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
658658
return cont(expect(":"), pattern, maybeAssign);
659659
}
660660
function eltpattern() {
661-
return cont(pattern, maybeAssign)
661+
return pass(pattern, maybeAssign)
662662
}
663663
function maybeAssign(_type, value) {
664664
if (value == "=") return cont(expressionNoComma);

0 commit comments

Comments
 (0)