From c174c2280bc42b09652813423e0edf65cc2a2aae Mon Sep 17 00:00:00 2001 From: Thays Grazia Date: Mon, 30 Jan 2023 16:32:47 -0300 Subject: [PATCH] [wasm][debugger] Fix firefox tests (#81364) * Fix firefox tests * fix debugger tests on firefox * fix firefox debugger tests * remove unrelated change * adressing radical comments --- src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs index 3733c6a..d680309 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs @@ -222,6 +222,8 @@ namespace Microsoft.WebAssembly.Diagnostics return true; Result res = await SendMonoCommand(sessionId, MonoCommands.IsRuntimeReady(RuntimeId), token); + if (!res.IsOk || res.Value?["result"]?["value"]?.Type != JTokenType.Boolean) //if runtime is not ready this may be the response + return false; return res.Value?["result"]?["value"]?.Value() ?? false; } private static PauseOnExceptionsKind GetPauseOnExceptionsStatusFromString(string state) -- 2.7.4