From 61611e4fe2ba3b192a8a992e46fb0715faaceedb Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Wed, 19 Jul 2023 16:01:20 +0200 Subject: [PATCH] Fixes Code QL alert (#188269) --- scripts/playground-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/playground-server.ts b/scripts/playground-server.ts index 9468087409f..1c2074ee191 100644 --- a/scripts/playground-server.ts +++ b/scripts/playground-server.ts @@ -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];