B2G/gecko/toolkit/devtools/webconsole/dbg-webconsole-actors.js
/**
   * Tells if the window.console object is native or overwritten by script in
   * the page.
   *
   * @return boolean
   *         True if the window.console object is native, or false otherwise.
   */
Tells if the window.console object is native or overwritten by script in
the page.

@return boolean
True if the window.console object is native, or false otherwise.
Tells if the window . console object is native or overwritten by script in the page . @return boolean True if the window . console object is native or false otherwise .
function WCA_hasNativeConsoleAPI()
  {
    let isNative = false;
    try {
      let consoleObject = WebConsoleUtils.unwrap(this.window).console;
      isNative = "__mozillaConsole__" in consoleObject;
    }
    catch (ex) { }
    return isNative;
  }
function WCA_hasNativeConsoleAPI ( ) { let isNative = false ; try { let consoleObject = WebConsoleUtils . unwrap ( this . window ) . console ; isNative = "__mozillaConsole__" in consoleObject ; } catch ( ex ) { } return isNative ; }
Tells if the window.console object is native or overwritten by script in
 the page.
Tells if the window . console object is native or overwritten by script in the page .