MCPcopy
hub / github.com/RubyLouvre/anu / error

Function error

test/babel.js:49954–49967  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

49952 return chr === '' ? 'EOF' : "'" + chr + "'";
49953 },
49954 error = function error(m) {
49955
49956 // Call error when something is wrong.
49957
49958 var error = new SyntaxError();
49959 // beginning of message suffix to agree with that provided by Gecko - see https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
49960 error.message = m + " at line " + lineNumber + " column " + columnNumber + " of the JSON5 data. Still to read: " + JSON.stringify(text.substring(at - 1, at + 19));
49961 error.at = at;
49962 // These two property names have been chosen to agree with the ones in Gecko, the only popular
49963 // environment which seems to supply this info on JSON.parse
49964 error.lineNumber = lineNumber;
49965 error.columnNumber = columnNumber;
49966 throw error;
49967 },
49968 next = function next(c) {
49969
49970 // If a c parameter is provided, verify that it matches the current character.

Callers 11

nextFunction · 0.85
identifierFunction · 0.85
numberFunction · 0.85
stringFunction · 0.85
inlineCommentFunction · 0.85
blockCommentFunction · 0.85
commentFunction · 0.85
wordFunction · 0.85
arrayFunction · 0.85
objectFunction · 0.85
babel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected