MCPcopy
hub / github.com/codesandbox/codesandbox-client / error

Function error

packages/app/static/js/babel.6.26.js:48262–48275  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

48260 return chr === '' ? 'EOF' : "'" + chr + "'";
48261 },
48262 error = function error(m) {
48263
48264 // Call error when something is wrong.
48265
48266 var error = new SyntaxError();
48267 // 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
48268 error.message = m + " at line " + lineNumber + " column " + columnNumber + " of the JSON5 data. Still to read: " + JSON.stringify(text.substring(at - 1, at + 19));
48269 error.at = at;
48270 // These two property names have been chosen to agree with the ones in Gecko, the only popular
48271 // environment which seems to supply this info on JSON.parse
48272 error.lineNumber = lineNumber;
48273 error.columnNumber = columnNumber;
48274 throw error;
48275 },
48276 next = function next(c) {
48277
48278 // If a c parameter is provided, verify that it matches the current character.

Callers 11

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

Calls

no outgoing calls

Tested by

no test coverage detected