Added ES6-specific Function properties.
This commit is contained in:
parent
839338b270
commit
12ac95732d
4
acorn.js
4
acorn.js
@ -1782,8 +1782,10 @@
|
|||||||
node.params = [];
|
node.params = [];
|
||||||
if (options.ecmaVersion >= 6) {
|
if (options.ecmaVersion >= 6) {
|
||||||
node.defaults = [];
|
node.defaults = [];
|
||||||
|
node.rest = null;
|
||||||
|
node.generator = false;
|
||||||
|
node.expression = false;
|
||||||
}
|
}
|
||||||
node.rest = null;
|
|
||||||
expect(_parenL);
|
expect(_parenL);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (eat(_parenR)) {
|
if (eat(_parenR)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user