add support for semicolons as class elements
This commit is contained in:
parent
9c3c569ac6
commit
55b3e96d95
4
acorn.js
4
acorn.js
@ -3063,6 +3063,10 @@
|
||||
classBody.body = [];
|
||||
expect(_braceL);
|
||||
while (!eat(_braceR)) {
|
||||
if (eat(_semi)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var method = startNode();
|
||||
if (options.ecmaVersion >= 7 && tokType === _name && tokVal === "private") {
|
||||
next();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "acorn-6to5",
|
||||
"description": "Acorn fork used by 6to5",
|
||||
"main": "acorn.js",
|
||||
"version": "0.11.1-5",
|
||||
"version": "0.11.1-6",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Marijn Haverbeke",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user