MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / errorPrefix

Function errorPrefix

src/utility.mjs:59–67  ·  view source on GitHub ↗
(lineNo)

Source from the content-addressed store, hash-verified

57}
58
59function errorPrefix(lineNo) {
60 if (!currentFile.length) return '';
61 const filename = currentFile[currentFile.length - 1];
62 if (lineNo) {
63 return `${filename}:${lineNo}: `;
64 } else {
65 return `${filename}: `;
66 }
67}
68
69export function warn(msg, lineNo) {
70 warnings = true;

Callers 2

warnFunction · 0.85
errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected