MCPcopy
hub / github.com/mishoo/UglifyJS-old / hex_bytes

Function hex_bytes

lib/parse-js.js:421–430  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

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(){

Callers 1

read_escaped_charFunction · 0.85

Calls 2

nextFunction · 0.85
parse_errorFunction · 0.85

Tested by

no test coverage detected