From f5b3d727300764c21228d48624a6873884c7f4f3 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 1 May 2015 00:09:26 -0400 Subject: [PATCH] support commas as obj property separators in flow --- src/acorn/plugins/flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acorn/plugins/flow.js b/src/acorn/plugins/flow.js index 1c4fdcce38..fad5277665 100644 --- a/src/acorn/plugins/flow.js +++ b/src/acorn/plugins/flow.js @@ -322,7 +322,7 @@ pp.flow_parseObjectType = function (allowStatic) { } pp.flow_objectTypeSemicolon = function () { - if (!this.eat(tt.semi) && this.type !== tt.braceR) { + if (!this.eat(tt.semi) && !this.eat(tt.comma) && this.type !== tt.braceR) { this.unexpected() } }