-
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.
InlineAndCollapseProperties fix for new TS 5.2 emit shape
TS 5.2. emits code like this: ``` // Alias variable created without being initialized. var alias; var C = class { // references to alias in here, because TS doesn't like using // the class name. }; alias = C; C.staticProperty = someValue; ``` This code shape confused `InlineAndCollapseProperties` causing it both to back off from some inlining (bigger output code) and fail to back off similarly for collapsing (broken output code). PiperOrigin-RevId: 564552797
- Loading branch information
1 parent
35345da
commit d4da7b3
Showing
4 changed files
with
63 additions
and
31 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