Added ES6-specific Function properties.

This commit is contained in:
Ingvar Stepanyan 2014-07-23 21:11:50 +03:00 committed by Marijn Haverbeke
parent 839338b270
commit 12ac95732d

View File

@ -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)) {