Skip to content

Commit

Permalink
Fixes Code QL alert (#188269)
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet authored Jul 19, 2023
1 parent 13c4597 commit 61611e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/playground-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function makeLoaderJsHotReloadable(loaderJsCode: string, fileChangesUrl: URL): s
if (___globalModuleManager._modules2[moduleId]) {
const srcUrl = ___globalModuleManager._config.moduleIdToPaths(data.moduleId);
const newSrc = await (await fetch(srcUrl)).text();
(new Function('define', newSrc))(function (deps, callback) {
(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.
const oldModule = ___globalModuleManager._modules2[moduleId];
delete ___globalModuleManager._modules2[moduleId];

Expand Down

0 comments on commit 61611e4

Please sign in to comment.