judge: fix interactive(testlib)

This commit is contained in:
undefined committed 2021-05-13 12:33:46 +08:00
1 parent 7c6e97fdfc
commit a5f8f02d8e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ export const judge = async (ctx) => {
return await compile(ctx.getLang(ctx.lang), ctx.code, 'code', copyIn, ctx.next);
})(),
(async () => {
const copyIn = { 'testlib.h': testlibSrc };
const copyIn = { 'testlib.h': { src: testlibSrc } };
for (const file of ctx.config.judge_extra_files) {
copyIn[parseFilename(file)] = { src: file };
}