(n)
| 419 | }; |
| 420 | |
| 421 | function hex_bytes(n) { |
| 422 | var num = 0; |
| 423 | for (; n > 0; --n) { |
| 424 | var digit = parseInt(next(true), 16); |
| 425 | if (isNaN(digit)) |
| 426 | parse_error("Invalid hex-character pattern in string"); |
| 427 | num = (num << 4) | digit; |
| 428 | } |
| 429 | return num; |
| 430 | }; |
| 431 | |
| 432 | function read_string() { |
| 433 | return with_eof_error("Unterminated string constant", function(){ |
no test coverage detected