添加console.clear

This commit is contained in:
fofolee committed 2025-02-28 09:35:55 +08:00
1 parent 9f9494a600
commit 70a2fb68bb
3 files changed
+11 -3

No files matched your search

+3
View File
@@ -179,6 +179,9 @@ window.runCodeInSandbox = (code, callback, addVars = {}) => {
error: (...stderr) => {
callback(null, stderr);
},
clear: () => {
callback({ __clearQuickcommandRunResult: true }, null);
},
};
let sandboxWithAD = Object.assign(addVars, sandbox);
sandboxWithAD.quickcommand = window.lodashM.cloneDeep(quickcommand);