diff --git a/src/typescript/worker/lib/system.ts b/src/typescript/worker/lib/system.ts index 65f85122..8138fd12 100644 --- a/src/typescript/worker/lib/system.ts +++ b/src/typescript/worker/lib/system.ts @@ -114,6 +114,10 @@ export const system: ControlledTypeScriptSystem = { .map((dirent) => dirent.name); }, getModifiedTime(path: string): Date | undefined { + if (typeof path !== "string") { + return undefined; + } + const stats = getReadFileSystem(path).readStats(path); if (stats) {