引入tree

This commit is contained in:
fofolee
2022-04-27 20:28:35 +08:00
parent b02ac2f09e
commit 77bd51acdb
4 changed files with 94 additions and 25 deletions

View File

@@ -463,7 +463,7 @@ window.runCodeInSandbox = (code, callback, addVars = {}) => {
sandbox.console = {
log: (...stdout) => {
console.log(stdout);
callback(parseStdout(stdout), null)
callback(stdout, null)
},
error: (...stderr) => {
callback(null, parseStdout(stderr))