MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doModule

Method doModule

tools/xsbug-log/xsbug-machine.js:229–234  ·  view source on GitHub ↗
(path, wait, source)

Source from the content-addressed store, hash-verified

227 this.doCommand(`logout`);
228 }
229 doModule(path, wait, source) {
230 let string = `\r\n<module path="${path}" line="${wait ? 1 : 0}"><![CDATA[`;
231 string += source;
232 string += `]]><module/>\r\n`;
233 this.output.write(this.encoder.encode(string));
234 }
235 doScript(path, wait, source) {
236 let string = `\r\n<script path="${path}" line="${wait ? 1 : 0}"><![CDATA[`;
237 string += source;

Callers 1

onImportMethod · 0.80

Calls 2

writeMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected