Fixed parsing x => 1, 2 like expressions.
This commit is contained in:
parent
757545a612
commit
16b9ba5db0
2
acorn.js
2
acorn.js
@ -1886,7 +1886,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var isExpression = tokType !== _braceL;
|
var isExpression = tokType !== _braceL;
|
||||||
var body = isExpression ? parseExpression() : parseBlock(true);
|
var body = isExpression ? parseExpression(true) : parseBlock(true);
|
||||||
|
|
||||||
node.id = null;
|
node.id = null;
|
||||||
node.params = params;
|
node.params = params;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user