Merge branch 'master' into harmony-v3.1.3

This commit is contained in:
alexlamsl
2017-10-01 12:42:40 +08:00
5 changed files with 44 additions and 5 deletions

View File

@@ -1322,6 +1322,9 @@ function parse($TEXT, options) {
if (in_statement && !name)
unexpected();
if (name && ctor !== AST_Accessor && !(name instanceof AST_SymbolDeclaration))
unexpected(prev());
var args = parameters();
var body = _function_body(true, is_generator || is_generator_property, is_async, name, args);
return new ctor({