mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: bug fix
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user