Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2022-04-29 20:41:45 +0300
committerGitHub <noreply@github.com>2022-04-29 20:41:45 +0300
commit1047b63bb171e1c29044f47a436d90fe106c1270 (patch)
tree87dc5ece5f8134f6b110b8d3feba4ea0efe5487e /src/mono/wasm/runtime
parentcbbe2c1c8a55316f9a436a97c052f516a0c9cc3c (diff)
Fixing firefox implementation to avoid this warning: "Addind an id that already exists in commands_received" (#68618)
Diffstat (limited to 'src/mono/wasm/runtime')
-rw-r--r--src/mono/wasm/runtime/debug.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mono/wasm/runtime/debug.ts b/src/mono/wasm/runtime/debug.ts
index 1b57eb4c3be..a6115177040 100644
--- a/src/mono/wasm/runtime/debug.ts
+++ b/src/mono/wasm/runtime/debug.ts
@@ -105,7 +105,7 @@ export function mono_wasm_send_dbg_command(id: number, command_set: number, comm
}
export function mono_wasm_get_dbg_command_info(): CommandResponseResult {
- const { res_ok, res } = commands_received.get(0);
+ const { res_ok, res } = commands_received.remove(0);
if (!res_ok)
throw new Error("Failed on mono_wasm_get_dbg_command_info");