src/cookies.js
/**
 * This method should not be inlined to prevent TryCatch deoptimization.
 * NoInline keyword at the end of function name also prevents Closure compiler
 * from inlining the function.
 * @param {!Window} win
 * @return {string}
 */
This method should not be inlined to prevent TryCatch deoptimization.
NoInline keyword at the end of function name also prevents Closure compiler
from inlining the function.
@param {!Window} win
@return {string}
This method should not be inlined to prevent TryCatch deoptimization . NoInline keyword at the end of function name also prevents Closure compiler from inlining the function . @param { !Window } win @return { string }
function tryGetDocumentCookieNoInline(win) {
  try {
    return win.document.cookie;
  } catch (e) {
    return '';
  }
}
function tryGetDocumentCookieNoInline ( win ) { try { return win . document . cookie ; } catch ( e ) { return '' ; } }
This method should not be inlined to prevent TryCatch deoptimization.
This method should not be inlined to prevent TryCatch deoptimization .
// Act as if no cookie is available. Exceptions can be thrown when // AMP docs are opened on origins that do not allow setting // cookies such as null origins.