Skip to content

Commit f62d2e0

Browse files
committed
[javascript mode] Fix parsing of trailing commas after obj spread
Closes codemirror#4785
1 parent e877556 commit f62d2e0

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
@@ -502,7 +502,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
502502
} else if (type == "[") {
503503
return cont(expression, expect("]"), afterprop);
504504
} else if (type == "spread") {
505-
return cont(expression);
505+
return cont(expression, afterprop);
506506
} else if (type == ":") {
507507
return pass(afterprop)
508508
}

0 commit comments

Comments
 (0)