MCPcopy Index your code
hub / github.com/json5/json5 / unicodeEscape

Function unicodeEscape

lib/parse.js:824–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822}
823
824function unicodeEscape () {
825 let buffer = ''
826 let count = 4
827
828 while (count-- > 0) {
829 const c = peek()
830 if (!util.isHexDigit(c)) {
831 throw invalidChar(read())
832 }
833
834 buffer += read()
835 }
836
837 return String.fromCodePoint(parseInt(buffer, 16))
838}
839
840const parseStates = {
841 start () {

Callers 3

identifierNameEscapeFunction · 0.85
escapeFunction · 0.85

Calls 3

peekFunction · 0.85
invalidCharFunction · 0.85
readFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…