B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Reports an error in the page source, either JavaScript or CSS.
   *
   * @param nsIScriptError aScriptError
   *        The error message to report.
   * @return nsIDOMElement|undefined
   *         The message element to display in the Web Console output.
   */
Reports an error in the page source, either JavaScript or CSS.
@param nsIScriptError aScriptError
The error message to report.
@return nsIDOMElement|undefined
The message element to display in the Web Console output.
Reports an error in the page source either JavaScript or CSS . @param nsIScriptError aScriptError The error message to report . @return nsIDOMElement|undefined The message element to display in the Web Console output .
function WCF_reportPageError(aCategory, aScriptError)
  {
    let severity = SEVERITY_ERROR;
    if (aScriptError.warning || aScriptError.strict) {
      severity = SEVERITY_WARNING;
    }
    let node = this.createMessageNode(aCategory, severity,
                                      aScriptError.errorMessage,
                                      aScriptError.sourceName,
                                      aScriptError.lineNumber, null, null,
                                      aScriptError.timeStamp);
    return node;
  }
function WCF_reportPageError ( aCategory , aScriptError ) { let severity = SEVERITY_ERROR ; if ( aScriptError . warning || aScriptError . strict ) { severity = SEVERITY_WARNING ; } let node = this . createMessageNode ( aCategory , severity , aScriptError . errorMessage , aScriptError . sourceName , aScriptError . lineNumber , null , null , aScriptError . timeStamp ) ; return node ; }
Reports an error in the page source, either JavaScript or CSS.
Reports an error in the page source either JavaScript or CSS .
// Warnings and legacy strict errors become warnings; other types become // errors.