()
| 802 | } |
| 803 | |
| 804 | function hexEscape () { |
| 805 | let buffer = '' |
| 806 | let c = peek() |
| 807 | |
| 808 | if (!util.isHexDigit(c)) { |
| 809 | throw invalidChar(read()) |
| 810 | } |
| 811 | |
| 812 | buffer += read() |
| 813 | |
| 814 | c = peek() |
| 815 | if (!util.isHexDigit(c)) { |
| 816 | throw invalidChar(read()) |
| 817 | } |
| 818 | |
| 819 | buffer += read() |
| 820 | |
| 821 | return String.fromCodePoint(parseInt(buffer, 16)) |
| 822 | } |
| 823 | |
| 824 | function unicodeEscape () { |
| 825 | let buffer = '' |
no test coverage detected
searching dependent graphs…