Skip to content

Commit aee6607

Browse files
authored
Allow GlobalizationMode.Invariant = false to be substituted by the trimmer. (#47999)
This allows a Blazor WASM app to trim unused Invariant code when Invariant mode isn't enabled.
1 parent c29727a commit aee6607

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.Shared.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</type>
99
<type fullname="System.Globalization.GlobalizationMode">
1010
<method signature="System.Boolean get_Invariant()" body="stub" value="true" feature="System.Globalization.Invariant" featurevalue="true" />
11+
<method signature="System.Boolean get_Invariant()" body="stub" value="false" feature="System.Globalization.Invariant" featurevalue="false" />
1112
</type>
1213
<type fullname="System.LocalAppContextSwitches">
1314
<method signature="System.Boolean get_EnableUnsafeUTF7Encoding()" body="stub" value="false" feature="System.Text.Encoding.EnableUnsafeUTF7Encoding" featurevalue="false" />

0 commit comments

Comments
 (0)