Starting destructuring expressions
This commit is contained in:
@@ -1410,9 +1410,6 @@ function parse($TEXT, options) {
|
||||
|
||||
if (!is("punc", ":")) {
|
||||
// It's one of those object destructurings, the value is its own name
|
||||
if (!S.in_parameters) {
|
||||
croak("Invalid syntax", S.token.line, S.token.col);
|
||||
}
|
||||
a.push(new AST_ObjectSymbol({
|
||||
start: start,
|
||||
end: start,
|
||||
|
||||
Reference in New Issue
Block a user