-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare global define aliases that J2clUtilGetDefineRewriterPass can …
…read from This will allow goog.defines declared in goog.modules to be consumable by J2CL's System.getProperty infrastructure. Since these reads are out-of-scope of the declaration, we need to provide some hook to link the two. To do this we define a global variable to serve as a well-known alias to the define. For the J2CL pass we can assume what the global variable is based on the define name, so we just simply replace the getProperty references with the appropriate global, if it exists. PiperOrigin-RevId: 719370016
- Loading branch information
1 parent
480bf0e
commit 287fd41
Showing
4 changed files
with
91 additions
and
5 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
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