添加setTimeout和clearTimeout支持

This commit is contained in:
fofolee
2025-02-20 21:57:53 +08:00
parent 60ac9fbc81
commit cf37411717
4 changed files with 28 additions and 7 deletions

View File

@@ -137,6 +137,9 @@ let getSandboxFuns = () => {
os,
child_process,
quickcomposer,
// timeout
setTimeout: quickcommand.setTimeout,
clearTimeout: quickcommand.clearTimeout,
};
Object.keys(shortCodes).forEach((f) => {
sandbox[f] = shortCodes[f];