MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / createError

Function createError

scripts/libs/esprima.js:2040–2047  ·  view source on GitHub ↗
(line, pos, description)

Source from the content-addressed store, hash-verified

2038 }
2039
2040 function createError(line, pos, description) {
2041 var error = new Error('Line ' + line + ': ' + description);
2042 error.index = pos;
2043 error.lineNumber = line;
2044 error.column = pos - (scanning ? lineStart : lastLineStart) + 1;
2045 error.description = description;
2046 return error;
2047 }
2048
2049 // Throw an exception
2050

Callers 3

throwErrorFunction · 0.85
tolerateErrorFunction · 0.85
unexpectedTokenErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected