()
| 1367 | }, |
| 1368 | |
| 1369 | number = function () { |
| 1370 | |
| 1371 | var number, |
| 1372 | string = ''; |
| 1373 | |
| 1374 | if (ch === '-') { |
| 1375 | string = '-'; |
| 1376 | next('-'); |
| 1377 | } |
| 1378 | while (ch >= '0' && ch <= '9') { |
| 1379 | string += ch; |
| 1380 | next(); |
| 1381 | } |
| 1382 | if (ch === '.') { |
| 1383 | string += '.'; |
| 1384 | while (next() && ch >= '0' && ch <= '9') { |
| 1385 | string += ch; |
| 1386 | } |
| 1387 | } |
| 1388 | if (ch === 'e' || ch === 'E') { |
| 1389 | string += ch; |
| 1390 | next(); |
| 1391 | if (ch === '-' || ch === '+') { |
| 1392 | string += ch; |
| 1393 | next(); |
| 1394 | } |
| 1395 | while (ch >= '0' && ch <= '9') { |
| 1396 | string += ch; |
| 1397 | next(); |
| 1398 | } |
| 1399 | } |
| 1400 | number = +string; |
| 1401 | if (isNaN(number)) { |
| 1402 | error("Bad number"); |
| 1403 | } else { |
| 1404 | return number; |
| 1405 | } |
| 1406 | }, |
| 1407 | |
| 1408 | string = function () { |
| 1409 |
no test coverage detected