提交 05d35745 编写于 作者: T Tomas Matousek

Filter ExceptionDispatchInfo.Throw method out of displayed stack trace

上级 57c05a8f
......@@ -5,6 +5,7 @@
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
namespace Microsoft.CodeAnalysis.Scripting.Hosting
{
......@@ -33,6 +34,11 @@ public override bool Include(StackFrame frame)
return false;
}
if (type == typeof(ExceptionDispatchInfo) && method.Name == nameof(ExceptionDispatchInfo.Throw))
{
return false;
}
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册