From b68bc950205952e369e792803487ec5dfdeead39 Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz Date: Wed, 3 Nov 2021 16:53:47 +0100 Subject: [PATCH] Applied @marek-safar review to exit the loop once the condition is fulfilled. --- src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs b/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs index 8579898faf715..9fe5205394e24 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs @@ -373,7 +373,11 @@ public MethodInfo(AssemblyInfo assembly, MethodDefinitionHandle methodDefHandle, var container = asmMetadataReader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent; var name = asmMetadataReader.GetString(asmMetadataReader.GetTypeReference((TypeReferenceHandle)container).Name); if (name == "DebuggerHiddenAttribute") + { this.IsHiddenFromDebugger = true; + break; + } + } } }