diff options
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r-- | src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs index 8745cc2e2..df3b91029 100644 --- a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs +++ b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs @@ -876,11 +876,10 @@ namespace System.Runtime return false; } -#if DEBUG +#if DEBUG && !INPLACE_RUNTIME private static EEType* s_pLowLevelObjectType; private static void AssertNotRuntimeObject(EEType* pClauseType) { -#if !INPLACE_RUNTIME // // The C# try { } catch { } clause expands into a typed catch of System.Object. // Since runtime has its own definition of System.Object, try { } catch { } might not do what @@ -898,14 +897,13 @@ namespace System.Runtime } Debug.Assert(!pClauseType->IsEquivalentTo(s_pLowLevelObjectType)); -#endif // !INPLACE_RUNTIME } -#endif // DEBUG +#endif // DEBUG && !INPLACE_RUNTIME private static bool ShouldTypedClauseCatchThisException(object exception, EEType* pClauseType) { -#if DEBUG +#if DEBUG && !INPLACE_RUNTIME AssertNotRuntimeObject(pClauseType); #endif |