You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// when we are running code generated by .NET8 on .NET7 runtime we need to auto initialize the assembly, because .NET7 doesn't call the registration from JS
245
-
// this also keeps the code protected from trimming
244
+
// HACK: protect the code from trimming by putting it behind a comparison we know
245
+
// will always evaluate to false at runtime, but the linker can't see through at
246
+
// build time. It seems there's no attribute to block trimming of a method?
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSHostImplementation.cs
0 commit comments