fix(compiler): don’t throw for empty array literal in assignments (#14878)

Closes #14782
This commit is contained in:
Tobias Bosch
2017-03-06 17:01:45 -08:00
committed by Chuck Jazdzewski
parent 6bc6482765
commit 6cd3326b55
2 changed files with 9 additions and 1 deletions

View File

@ -320,7 +320,7 @@ export class AstTransformer implements AstVisitor {
}
visitPropertyWrite(ast: PropertyWrite, context: any): AST {
return new PropertyWrite(ast.span, ast.receiver.visit(this), ast.name, ast.value);
return new PropertyWrite(ast.span, ast.receiver.visit(this), ast.name, ast.value.visit(this));
}
visitSafePropertyRead(ast: SafePropertyRead, context: any): AST {