Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiler crash during a special case with multi-line template lit…
…erals. The error occurs when printing the code using the CompactCodePrinter, when the multi-line template literal falls on the last line. In the CompactCodePrinter, there is logic to combine the last line with the line above, but this breaks if the "last line" contains line breaks (within template literals). The CodePrinter will mistakenly think that the last line is longer than it actually is. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=220862628
- Loading branch information
Showing
2 changed files
with
75 additions
and
28 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