Fixed parsing x => 1, 2 like expressions.

This commit is contained in:
Ingvar Stepanyan 2014-07-24 01:55:34 +03:00 committed by Marijn Haverbeke
parent 757545a612
commit 16b9ba5db0

View File

@ -1886,7 +1886,7 @@
}
var isExpression = tokType !== _braceL;
var body = isExpression ? parseExpression() : parseBlock(true);
var body = isExpression ? parseExpression(true) : parseBlock(true);
node.id = null;
node.params = params;