Skip to content

Commit 27fed36

Browse files
pavelsavarajkotas
andauthored
Update src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs
Co-authored-by: Jan Kotas <[email protected]>
1 parent 0f1a005 commit 27fed36

File tree

1 file changed

+2
-3
lines changed
  • src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices

1 file changed

+2
-3
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,9 +1141,8 @@ public static IntPtr GetFunctionPointerForDelegate(Delegate d)
11411141
{
11421142
ArgumentNullException.ThrowIfNull(d);
11431143

1144-
#if TARGET_BROWSER || TARGET_WASI
1145-
if (OperatingSystem.IsWasi() || OperatingSystem.IsBrowser()) throw new PlatformNotSupportedException(SR.PlatformNotSupported_DynamicEntrypoint);
1146-
#endif
1144+
if (OperatingSystem.IsWasi() || OperatingSystem.IsBrowser())
1145+
throw new PlatformNotSupportedException(SR.PlatformNotSupported_DynamicEntrypoint);
11471146

11481147
return GetFunctionPointerForDelegateInternal(d);
11491148
}

0 commit comments

Comments
 (0)