MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / makeConsoleHistoryEntry

Function makeConsoleHistoryEntry

debug-plugin/content-script.js:259–271  ·  view source on GitHub ↗
(input, output)

Source from the content-addressed store, hash-verified

257 };
258
259 const makeConsoleHistoryEntry = function (input, output) {
260 if (!output) {
261 const result = _hyperscript.parse(input);
262 output = result.execute
263 ? result.execute(ctx)
264 : result.evaluate(ctx);
265 }
266
267 return '<li class="console-entry">' +
268 '<kbd><code class="input">' + escapeHTML(input) + '</code></kbd>' +
269 '<samp class="output">' + prettyPrint(output) + '</samp>' +
270 '</li>';
271 };
272
273 const evaluateExpression = function (input) {
274 consoleHistory.push(input);

Callers 2

brkFunction · 0.85
evaluateExpressionFunction · 0.85

Calls 5

prettyPrintFunction · 0.85
escapeHTMLFunction · 0.70
parseMethod · 0.45
executeMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected