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