From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Thu, 4 Nov 2021 12:08:52 +0000 (+0100) Subject: Applied @marek-safar review to exit the loop once the condition is fulfilled. (#61165) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~12387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d216c7c15cb0080342f1191368afc7e5be172de0;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Applied @marek-safar review to exit the loop once the condition is fulfilled. (#61165) --- diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs b/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs index 8579898..9fe5205 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs @@ -373,7 +373,11 @@ namespace Microsoft.WebAssembly.Diagnostics var container = asmMetadataReader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent; var name = asmMetadataReader.GetString(asmMetadataReader.GetTypeReference((TypeReferenceHandle)container).Name); if (name == "DebuggerHiddenAttribute") + { this.IsHiddenFromDebugger = true; + break; + } + } } }