exclude errorSource from call to Environment.FailFast on Unix
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 9 Feb 2018 03:28:17 +0000 (19:28 -0800)
committerJan Kotas <jkotas@microsoft.com>
Sat, 10 Feb 2018 01:07:40 +0000 (17:07 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/Diagnostics/Debug.Unix.cs

index 0554581..0ea1879 100644 (file)
@@ -21,8 +21,10 @@ namespace System.Diagnostics
                 // In Core, we do not show a dialog.
                 // Fail in order to avoid anyone catching an exception and masking
                 // an assert failure.
+
+                // We can safely ignore errorSource since it's a CoreCLR specific argument for distinguishing calls from Debug.Assert and Environment.FailFast
                 var ex = new DebugAssertException(message, detailMessage, stackTrace);
-                Environment.FailFast(ex.Message, ex, errorSource);
+                Environment.FailFast(ex.Message, ex);
             }
         }