diff --git a/debugger/sourcemap.ts b/debugger/sourcemap.ts index 96da419..3199a86 100644 --- a/debugger/sourcemap.ts +++ b/debugger/sourcemap.ts @@ -206,8 +206,8 @@ export namespace SourceMap { const scriptRootsStr = os.getenv(scriptRootsEnv); if (scriptRootsStr) { for (let [path] of scriptRootsStr.gmatch("[^;]+")) { - path = Path.format(path) + Path.separator; - table.insert(scriptRoots, path); + const formattedPath = Path.format(path) + Path.separator; + table.insert(scriptRoots, formattedPath); } } }