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?
+1 -1
View File
@@ -396,7 +396,7 @@ export function Connection(
for (const { name, target } of h.__subscribe || []) disposables.push(bus.on(name, target.bind(h)));
let lastHeartbeat = Date.now();
let closed = false;
let interval: NodeJS.Timer;
let interval: NodeJS.Timeout;
const clean = () => {
if (closed) return;
closed = true;