diff --git a/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml b/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml index c410fee4e530d..d5fbde8e348dc 100644 --- a/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml +++ b/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml @@ -800,10 +800,6 @@ CP0001 T:System.Diagnostics.DebugAnnotations - - CP0001 - T:System.Diagnostics.DebuggerGuidedStepThroughAttribute - CP0001 T:System.MDArray @@ -868,10 +864,6 @@ CP0001 T:System.Reflection.RuntimeAssemblyName - - CP0001 - T:System.Runtime.CompilerServices.EagerStaticClassConstructionAttribute - CP0001 T:System.Runtime.CompilerServices.ForceDictionaryLookupsAttribute @@ -1006,8 +998,4 @@ ref/net8.0/System.Private.CoreLib.dll lib/net8.0/System.Private.CoreLib.dll - - CP0016 - M:System.Runtime.InteropServices.Marshal.GetObjectForNativeVariant``1(System.IntPtr)->T?:[T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute] - - \ No newline at end of file + diff --git a/src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Com.cs b/src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Com.cs index ba72bcaad12f3..18828c7ad17f7 100644 --- a/src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Com.cs +++ b/src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Com.cs @@ -342,10 +342,9 @@ public static object GetObjectForIUnknown(IntPtr pUnk) } } - [return: MaybeNull] [SupportedOSPlatform("windows")] [EditorBrowsable(EditorBrowsableState.Never)] - public static T GetObjectForNativeVariant(IntPtr pSrcNativeVariant) + public static T? GetObjectForNativeVariant(IntPtr pSrcNativeVariant) { throw new NotSupportedException(SR.PlatformNotSupported_ComInterop); } diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.WasmThreads.xml b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.WasmThreads.xml new file mode 100644 index 0000000000000..5f6463b613136 --- /dev/null +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.WasmThreads.xml @@ -0,0 +1,9 @@ + + + + CP0001 + T:System.Runtime.InteropServices.JavaScript.WebWorker + ref/net8.0/System.Runtime.InteropServices.JavaScript.dll + runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll + + diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml index ce09898be3a45..0f9c4fcf9fb0f 100644 --- a/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml @@ -43,12 +43,6 @@ ref/net8.0/System.Runtime.InteropServices.JavaScript.dll runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll - - CP0001 - T:System.Runtime.InteropServices.JavaScript.WebWorker - ref/net8.0/System.Runtime.InteropServices.JavaScript.dll - runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll - CP0001 T:System.Runtime.InteropServices.JavaScript.CancelablePromise @@ -67,4 +61,4 @@ ref/net8.0/System.Runtime.InteropServices.JavaScript.dll runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll - \ No newline at end of file + diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj index 3cc3478d9f491..33a44fdb05cd7 100644 --- a/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj +++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj @@ -78,6 +78,9 @@ + + + @@ -90,7 +93,7 @@ - +