enable experimentalDecorators for esbuild

This commit is contained in:
undefined committed 2023-11-25 06:32:41 +08:00
1 parent d2ccf598a7
commit bbe1345a82
7 files changed
+9 -5

No files matched your search

+3 -1
View File
@@ -107,7 +107,9 @@ class SystemScriptHandler extends SystemHandler {
}
const rid = await record.add(domainId, -1, this.user._id, '-', id, false, { input: raw, type: 'pretest' });
const rdoc = await record.get(rid);
const report = (data) => judge.next({ domainId, rid, ...data,rdoc });
const report = (data) => judge.next({
domainId, rid, ...data, rdoc,
});
report({ message: `Running script: ${id} `, status: STATUS.STATUS_JUDGING });
const start = Date.now();
// Maybe async?