Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow assigning the result of goog.define
Adds a new AST property to store the identifier passed to goog.define, since the string is otherwise thrown away from the AST. Updates ProcessClosurePrimitives to no longer throw an error for this case. Updates ProcessDefines to look for and use the property. This is important to support using goog.define in modules, where we no longer want to assign a global value. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=231298527
- Loading branch information
Showing
7 changed files
with
201 additions
and
124 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
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
Oops, something went wrong.