[loose parser] Fix bug in argument list parsing
This commit is contained in:
parent
7d73fe243a
commit
b8ec8aab2c
@ -627,7 +627,7 @@
|
|||||||
else node.id = null;
|
else node.id = null;
|
||||||
node.params = [];
|
node.params = [];
|
||||||
expect(tt.parenL);
|
expect(tt.parenL);
|
||||||
while (node.type == tt.name) {
|
while (token.type == tt.name) {
|
||||||
node.params.push(parseIdent());
|
node.params.push(parseIdent());
|
||||||
eat(tt.comma);
|
eat(tt.comma);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user