()
| 1406 | }, |
| 1407 | |
| 1408 | string = function () { |
| 1409 | |
| 1410 | var hex, |
| 1411 | i, |
| 1412 | string = '', |
| 1413 | uffff; |
| 1414 | |
| 1415 | if (ch === '"') { |
| 1416 | while (next()) { |
| 1417 | if (ch === '"') { |
| 1418 | next(); |
| 1419 | return string; |
| 1420 | } else if (ch === '\\') { |
| 1421 | next(); |
| 1422 | if (ch === 'u') { |
| 1423 | uffff = 0; |
| 1424 | for (i = 0; i < 4; i += 1) { |
| 1425 | hex = parseInt(next(), 16); |
| 1426 | if (!isFinite(hex)) { |
| 1427 | break; |
| 1428 | } |
| 1429 | uffff = uffff * 16 + hex; |
| 1430 | } |
| 1431 | string += String.fromCharCode(uffff); |
| 1432 | } else if (typeof escapee[ch] === 'string') { |
| 1433 | string += escapee[ch]; |
| 1434 | } else { |
| 1435 | break; |
| 1436 | } |
| 1437 | } else { |
| 1438 | string += ch; |
| 1439 | } |
| 1440 | } |
| 1441 | } |
| 1442 | error("Bad string"); |
| 1443 | }, |
| 1444 | |
| 1445 | white = function () { |
| 1446 |
no test coverage detected