mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
enable experimentalDecorators for esbuild
This commit is contained in:
7 files changed
+9
-5
No files matched your search
@@ -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?
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user