From c263a25b5403ec8f3d07bf2880a35ca0efce5237 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 --- plugins/flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/flow.js b/plugins/flow.js index 1c4fdcce38..fad5277665 100644 --- a/plugins/flow.js +++ b/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() } }