MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / exec

Function exec

src/lib/console.js:670–679  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

668 }
669
670 function exec(code) {
671 let res = null;
672 try {
673 res = { type: "result", value: window.eval(code) };
674 } catch (error) {
675 res = { type: "error", value: error };
676 }
677
678 return res;
679 }
680 }
681
682 function onError(err) {

Callers 15

execParsedCodeFunction · 0.70
config.jsFile · 0.50
runFunction · 0.50
spawnStreamMethod · 0.50
startMethod · 0.50
writeMethod · 0.50
moveToBackgroundMethod · 0.50
moveToForegroundMethod · 0.50
stopMethod · 0.50
isRunningMethod · 0.50
listProcessesMethod · 0.50
listAllProcessesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected