third_party/subscriptions-project/swg-gaa.js
/**
 * Returns a Location-like object for the given URL. If it is relative,
 * the URL gets resolved.
 * Consider the returned object immutable. This is enforced during
 * testing by freezing the object.
 * @param {string} url
 * @return {!LocationDef}
 */
Returns a Location-like object for the given URL. If it is relative,
the URL gets resolved.
Consider the returned object immutable. This is enforced during
testing by freezing the object.
@param {string} url
@return {!LocationDef}
Returns a Location - like object for the given URL . If it is relative the URL gets resolved . Consider the returned object immutable . This is enforced during testing by freezing the object . @param { string } url @return { !LocationDef }
function parseUrl(url) {
  if (!a) {
    a =  (self.document.createElement('a'));
    cache = self.UrlCache || (self.UrlCache = Object.create(null));
  }
  const fromCache = cache[url];
  if (fromCache) {
    return fromCache;
  }
  const info = parseUrlWithA(a, url);
  return (cache[url] = info);
}
function parseUrl ( url ) { if ( ! a ) { a = ( self . document . createElement ( 'a' ) ) ; cache = self . UrlCache || ( self . UrlCache = Object . create ( null ) ) ; } const fromCache = cache [ url ] ; if ( fromCache ) { return fromCache ; } const info = parseUrlWithA ( a , url ) ; return ( cache [ url ] = info ) ; }
Returns a Location-like object for the given URL.
Returns a Location - like object for the given URL .
/** @type {!HTMLAnchorElement} */