Skip to content

Commit 61611e4

Browse files
authored
Fixes Code QL alert (microsoft#188269)
1 parent 13c4597 commit 61611e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/playground-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function makeLoaderJsHotReloadable(loaderJsCode: string, fileChangesUrl: URL): s
280280
if (___globalModuleManager._modules2[moduleId]) {
281281
const srcUrl = ___globalModuleManager._config.moduleIdToPaths(data.moduleId);
282282
const newSrc = await (await fetch(srcUrl)).text();
283-
(new Function('define', newSrc))(function (deps, callback) {
283+
(new Function('define', newSrc))(function (deps, callback) { // CodeQL [SM01632] This code is only executed during development (as part of the dev-only playground-server). It is required for the hot-reload functionality.
284284
const oldModule = ___globalModuleManager._modules2[moduleId];
285285
delete ___globalModuleManager._modules2[moduleId];
286286

0 commit comments

Comments
 (0)