Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the AstValidator to better validate destructuring assignments.
First, reject destructuring on the LHS of compound assignments. Second, accept full LValue expressions as well as names in patterns in the LHS of DEFAULT_VALUE nodes when used on the LHS of a assignment expression. For example this expression was rejected: ([ x['y'] = z ] = []) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171842831
- Loading branch information
1 parent
55ece60
commit 6fd75a2
Showing
2 changed files
with
91 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters