MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / report

Method report

tools/xsbug-log/xsbug-debugmachine.js:415–427  ·  view source on GitHub ↗
(event, data, error, formatter)

Source from the content-addressed store, hash-verified

413 }
414
415 report(event, data, error, formatter) {
416 if (this.outputFormat === 'json') {
417 this.clearLine();
418 const output = { event };
419 if (this.id !== undefined) output.thread = this.id;
420 if (data !== undefined && data !== null) output.data = data;
421 if (error !== undefined && error !== null) output.error = error;
422 console.log(JSON.stringify(output, null, 2));
423 this.showPrompt();
424 } else if (formatter) {
425 formatter(data, error);
426 }
427 }
428
429 // --- Protocol event handlers ---
430

Callers 15

printMethod · 0.95
commandErrorMethod · 0.95
onBrokenMethod · 0.95
printLocationMethod · 0.95
printSourceLineMethod · 0.95
cmdListMethod · 0.95
cmdBreakMethod · 0.95
cmdDeleteMethod · 0.95
cmdClearMethod · 0.95
cmdBacktraceMethod · 0.95
cmdFrameMethod · 0.95
cmdPrintMethod · 0.95

Calls 3

clearLineMethod · 0.95
showPromptMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected