MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / executeJS

Function executeJS

static/js/learnpython.js:175–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173}
174
175async function executeJS() {
176 try {
177 print("Executing, please wait...");
178 const response = await eval_console(editor.getValue());
179 print(response);
180 } catch(err) {
181 print(err.message);
182 }
183
184}
185
186function execDone(data) {
187 if (data["output"] === "text" || data["output"] === "exception") {

Callers 1

executeFunction · 0.85

Calls 3

printFunction · 0.85
eval_consoleFunction · 0.85
getValueMethod · 0.80

Tested by

no test coverage detected