Skip to content

Commit 4390ebc

Browse files
authored
Format loader and add more comments (microsoft#188115)
1 parent fe8c978 commit 4390ebc

File tree

2 files changed

+1827
-1827
lines changed

2 files changed

+1827
-1827
lines changed

src/vs/base/worker/workerMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
try {
5555
const func = (
5656
trustedTypesPolicy
57-
? globalThis.eval(<any>trustedTypesPolicy.createScript('', 'true'))
57+
? globalThis.eval(<any>trustedTypesPolicy.createScript('', 'true')) // 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
5858
: new Function('true') // 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
5959
);
6060
func.call(globalThis);

0 commit comments

Comments
 (0)