From 4848c3479c2649aeae0b9d7c6cbc4143095caab7 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 30 Sep 2021 17:39:13 -0500 Subject: [PATCH 1/3] Fix codeql checks --- src/mono/wasm/runtime/library_mono.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mono/wasm/runtime/library_mono.js b/src/mono/wasm/runtime/library_mono.js index cc3b9654a5a518..566951c827d70e 100644 --- a/src/mono/wasm/runtime/library_mono.js +++ b/src/mono/wasm/runtime/library_mono.js @@ -1301,15 +1301,15 @@ var MonoSupportLib = { try { if (asset.name === attemptUrl) { if (ctx.tracing) - console.log ("Attempting to fetch '" + attemptUrl + "'"); + console.log ("Attempting to fetch '%s'", + attemptUrl); } else { if (ctx.tracing) - console.log ("Attempting to fetch '" + attemptUrl + "' for", asset.name); + console.log ("Attempting to fetch '%s' for '%s'", attemptUrl, asset.name); } var fetch_promise = fetch_file_cb (attemptUrl); fetch_promise.then (handleFetchResponse); } catch (exc) { - console.error ("MONO_WASM: Error fetching " + attemptUrl, exc); + console.error ("MONO_WASM: Error fetching `%s`\n%s", attemptUrl, exc); attemptNextSource (); } }; From 254a6eae2062b85acbe0865616743b46f2b757a6 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 1 Oct 2021 10:25:44 -0500 Subject: [PATCH 2/3] Update library_mono.js fix quote type --- src/mono/wasm/runtime/library_mono.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/runtime/library_mono.js b/src/mono/wasm/runtime/library_mono.js index 566951c827d70e..b2541a0616d0fa 100644 --- a/src/mono/wasm/runtime/library_mono.js +++ b/src/mono/wasm/runtime/library_mono.js @@ -1309,7 +1309,7 @@ var MonoSupportLib = { var fetch_promise = fetch_file_cb (attemptUrl); fetch_promise.then (handleFetchResponse); } catch (exc) { - console.error ("MONO_WASM: Error fetching `%s`\n%s", attemptUrl, exc); + console.error ("MONO_WASM: Error fetching '%s'\n%s", attemptUrl, exc); attemptNextSource (); } }; From e435fa9e2ede12ecde2da94c2fbeffc6b6aa5205 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 1 Oct 2021 10:29:36 -0500 Subject: [PATCH 3/3] Update library_mono.js and fix the other typo --- src/mono/wasm/runtime/library_mono.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/runtime/library_mono.js b/src/mono/wasm/runtime/library_mono.js index b2541a0616d0fa..a31ba07051222f 100644 --- a/src/mono/wasm/runtime/library_mono.js +++ b/src/mono/wasm/runtime/library_mono.js @@ -1301,7 +1301,7 @@ var MonoSupportLib = { try { if (asset.name === attemptUrl) { if (ctx.tracing) - console.log ("Attempting to fetch '%s'", + attemptUrl); + console.log ("Attempting to fetch '%s'", attemptUrl); } else { if (ctx.tracing) console.log ("Attempting to fetch '%s' for '%s'", attemptUrl, asset.name);