better class element semicolons
This commit is contained in:
parent
1eeb505bf4
commit
f2c78674af
7
acorn.js
7
acorn.js
@ -3062,10 +3062,8 @@
|
||||
classBody.body = [];
|
||||
expect(_braceL);
|
||||
while (!eat(_braceR)) {
|
||||
if (eat(_semi)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
while (eat(_semi));
|
||||
if (tokType === _braceR) continue;
|
||||
var method = startNode();
|
||||
if (options.ecmaVersion >= 7 && tokType === _name && tokVal === "private") {
|
||||
next();
|
||||
@ -3112,7 +3110,6 @@
|
||||
method.value = parseMethod(isGenerator, isAsync);
|
||||
method.value.typeParameters = typeParameters;
|
||||
classBody.body.push(finishNode(method, "MethodDefinition"));
|
||||
eat(_semi);
|
||||
}
|
||||
}
|
||||
node.body = finishNode(classBody, "ClassBody");
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "acorn-6to5",
|
||||
"description": "Acorn fork used by 6to5",
|
||||
"main": "acorn.js",
|
||||
"version": "0.11.1-9",
|
||||
"version": "0.11.1-10",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Marijn Haverbeke",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user