MCPcopy Create free account
hub / github.com/d3x0r/JSON6 / throwError

Function throwError

lib/json6.js:303–305  ·  view source on GitHub ↗
( leader, c )

Source from the content-addressed store, hash-verified

301 let retval = 0;
302
303 function throwError( leader, c ) {
304 throw new Error( `${leader} '${String.fromCodePoint( c )}' unexpected at ${n} (near '${buf.substr(n>4?(n-4):0,n>4?3:(n-1))}[${String.fromCodePoint( c )}]${buf.substr(n, 10)}') [${pos.line}:${pos.col}]`);
305 }
306
307 function RESET_VAL() {
308 val.value_type = VALUE_UNSET;

Callers 3

gatherStringFunction · 0.85
collectNumberFunction · 0.85
_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected