Starting destructuring expressions

This commit is contained in:
Fábio Santos
2015-01-15 03:03:38 +00:00
parent 079aaa0d48
commit dc5db9b6ca
3 changed files with 20 additions and 3 deletions

View File

@@ -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,