judge: bug fix

This commit is contained in:
undefined committed 2025-02-15 20:40:29 +08:00
1 parent 04fcd57f51
commit eaa38c6ba5
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -210,11 +210,11 @@ export class JudgeTask {
const s = file.replace('@', '.').split('.');
langId = s.pop();
while (s.length) {
lang = this.session.getLang(langId);
lang = this.session.getLang(langId, false);
if (lang) break;
langId = `${s.pop()}.${langId}`;
}
} else lang = this.session.getLang(langId);
} else lang = this.session.getLang(langId, false);
if (!lang) throw new FormatError(`Unknown ${type} language.`);
// TODO cache compiled binary
const result = await compile(lang, { src: file }, copyIn);