Skip to content

Commit 5e9e865

Browse files
authored
[release/6.0][wasm] Fix codeql checks (#59839)
Fixes #59147 for release/6.0 a console method is called with both a concatenated format string and multiple arguments.
1 parent e9b59ad commit 5e9e865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mono/wasm/runtime/library_mono.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,15 +1301,15 @@ var MonoSupportLib = {
13011301
try {
13021302
if (asset.name === attemptUrl) {
13031303
if (ctx.tracing)
1304-
console.log ("Attempting to fetch '" + attemptUrl + "'");
1304+
console.log ("Attempting to fetch '%s'", attemptUrl);
13051305
} else {
13061306
if (ctx.tracing)
1307-
console.log ("Attempting to fetch '" + attemptUrl + "' for", asset.name);
1307+
console.log ("Attempting to fetch '%s' for '%s'", attemptUrl, asset.name);
13081308
}
13091309
var fetch_promise = fetch_file_cb (attemptUrl);
13101310
fetch_promise.then (handleFetchResponse);
13111311
} catch (exc) {
1312-
console.error ("MONO_WASM: Error fetching " + attemptUrl, exc);
1312+
console.error ("MONO_WASM: Error fetching '%s'\n%s", attemptUrl, exc);
13131313
attemptNextSource ();
13141314
}
13151315
};

0 commit comments

Comments
 (0)