feat: new mjs scanner

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2022-04-01 17:18:32 +08:00
parent 30fd065bc5
commit 2ff57d1c0b
28 changed files with 458 additions and 96 deletions

View File

@@ -100,7 +100,7 @@ export namespace event {
let time = Date.now()
exec(event)
let cost = Date.now() - time
if (cost > 20) {
if (cost > global.ScriptSlowExecuteTime) {
console.i18n("ms.api.event.execute.slow", { name, event: this.class2Name(eventCls), cost })
}
}