MCPcopy
hub / github.com/Tampermonkey/tampermonkey / hex

Function hex

src/jslint.js:1272–1281  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1270 var c, pos = 0, r = '', result;
1271
1272 function hex(n) {
1273 var i = parseInt(source_row.substr(pos + 1, n), 16);
1274 pos += n;
1275 if (i >= 32 && i <= 126 &&
1276 i !== 34 && i !== 92 && i !== 39) {
1277 warn_at('unexpected_a', line, character, '\\');
1278 }
1279 character += n;
1280 c = String.fromCharCode(i);
1281 }
1282
1283 if (json_mode && x !== '"') {
1284 warn_at('expected_a', line, character, '"');

Callers 1

stringFunction · 0.85

Calls 1

warn_atFunction · 0.85

Tested by

no test coverage detected