(state, start, end, checkJson)
| 11307 | |
| 11308 | |
| 11309 | function captureSegment(state, start, end, checkJson) { |
| 11310 | var _position, _length, _character, _result; |
| 11311 | |
| 11312 | if (start < end) { |
| 11313 | _result = state.input.slice(start, end); |
| 11314 | |
| 11315 | if (checkJson) { |
| 11316 | for (_position = 0, _length = _result.length; |
| 11317 | _position < _length; |
| 11318 | _position += 1) { |
| 11319 | _character = _result.charCodeAt(_position); |
| 11320 | if (!(_character === 0x09 || |
| 11321 | (0x20 <= _character && _character <= 0x10FFFF))) { |
| 11322 | throwError(state, 'expected valid JSON character'); |
| 11323 | } |
| 11324 | } |
| 11325 | } else if (PATTERN_NON_PRINTABLE.test(_result)) { |
| 11326 | throwError(state, 'the stream contains non-printable characters'); |
| 11327 | } |
| 11328 | |
| 11329 | state.result += _result; |
| 11330 | } |
| 11331 | } |
| 11332 | |
| 11333 | function mergeMappings(state, destination, source, overridableKeys) { |
| 11334 | var sourceKeys, key, index, quantity; |
no test coverage detected