mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Duplicate CodeQL suppression comment (#194036)
* Duplicate CodeQL suppression comment * Another one
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
text = `${text}\n//# sourceURL=${loaderSrc}`;
|
||||
const func = (
|
||||
trustedTypesPolicy
|
||||
? globalThis.eval(trustedTypesPolicy.createScript('', text) as unknown as string)
|
||||
? globalThis.eval(trustedTypesPolicy.createScript('', text) as unknown as string) // CodeQL [SM01632] fetch + eval is used on the web worker instead of importScripts if possible because importScripts is synchronous and we observed deadlocks on Safari
|
||||
: new Function(text) // CodeQL [SM01632] fetch + eval is used on the web worker instead of importScripts if possible because importScripts is synchronous and we observed deadlocks on Safari
|
||||
);
|
||||
func.call(globalThis);
|
||||
|
||||
@@ -705,7 +705,7 @@ var AMDLoader;
|
||||
}).then((text) => {
|
||||
text = `${text}\n//# sourceURL=${scriptSrc}`;
|
||||
const func = (trustedTypesPolicy
|
||||
? self.eval(trustedTypesPolicy.createScript('', text))
|
||||
? self.eval(trustedTypesPolicy.createScript('', text)) // CodeQL [SM01632] the loader is responsible with loading code, fetch + eval is used on the web worker instead of importScripts if possible because importScripts is synchronous and we observed deadlocks on Safari
|
||||
: new Function(text) // CodeQL [SM01632] the loader is responsible with loading code, fetch + eval is used on the web worker instead of importScripts if possible because importScripts is synchronous and we observed deadlocks on Safari
|
||||
);
|
||||
func.call(self);
|
||||
|
||||
Reference in New Issue
Block a user