node_modules/whatwg-url/lib/percent-encoding.js
// as JS numbers, like the rest of the codebase.
as JS numbers, like the rest of the codebase.
as JS numbers like the rest of the codebase .
function utf8PercentEncodeCodePointInternal(codePoint, percentEncodePredicate) {
  const bytes = utf8Encode(codePoint);
  let output = "";
  for (const byte of bytes) {
    if (!percentEncodePredicate(byte)) {
      output += String.fromCharCode(byte);
    } else {
      output += percentEncode(byte);
    }
  }
  return output;
}
function utf8PercentEncodeCodePointInternal ( codePoint , percentEncodePredicate ) { const bytes = utf8Encode ( codePoint ) ; let output = "" ; for ( const byte of bytes ) { if ( ! percentEncodePredicate ( byte ) ) { output += String . fromCharCode ( byte ) ; } else { output += percentEncode ( byte ) ; } } return output ; }
as JS numbers, like the rest of the codebase.
as JS numbers like the rest of the codebase .
// Our percentEncodePredicate operates on bytes, not code points, so this is slightly different from the spec.