MCPcopy Index your code
hub / github.com/nodejs/node / decodeStr

Function decodeStr

lib/querystring.js:478–484  ·  view source on GitHub ↗

* V8 does not optimize functions with try-catch blocks, so we isolate them here * to minimize the damage (Note: no longer true as of V8 5.4 -- but still will * not be inlined). * @param {string} s * @param {(v: string) => string} decoder * @returns {string}

(s, decoder)

Source from the content-addressed store, hash-verified

476 * @returns {string}
477 */
478function decodeStr(s, decoder) {
479 try {
480 return decoder(s);
481 } catch {
482 return QueryString.unescape(s, true);
483 }
484}

Callers 1

addKeyValFunction · 0.85

Calls 2

decoderFunction · 0.85
unescapeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…