(m)
| 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. |
no outgoing calls
no test coverage detected