[ES6] fix parsing spread arguments that are expressions
This commit is contained in:
@@ -2371,7 +2371,7 @@ function parse($TEXT, options) {
|
||||
next();
|
||||
args.push(new AST_Expansion({
|
||||
start: prev(),
|
||||
expression: as_symbol(AST_SymbolFunarg)
|
||||
expression: expression(false)
|
||||
}));
|
||||
} else {
|
||||
args.push(expression(false));
|
||||
|
||||
Reference in New Issue
Block a user