bin/XULRunner21_0/chrome/toolkit/content/global/devtools/dbg-webconsole-actors.js
/**
   * Prepare an nsIScriptError to be sent to the client.
   *
   * @param nsIScriptError aPageError
   *        The page error we need to send to the client.
   * @return object
   *         The object you can send to the remote client.
   */
Prepare an nsIScriptError to be sent to the client.
@param nsIScriptError aPageError
The page error we need to send to the client.
@return object
The object you can send to the remote client.
Prepare an nsIScriptError to be sent to the client . @param nsIScriptError aPageError The page error we need to send to the client . @return object The object you can send to the remote client .
function WCA_preparePageErrorForRemote(aPageError)
  {
    return {
      message: aPageError.message,
      errorMessage: aPageError.errorMessage,
      sourceName: aPageError.sourceName,
      lineText: aPageError.sourceLine,
      lineNumber: aPageError.lineNumber,
      columnNumber: aPageError.columnNumber,
      category: aPageError.category,
      timeStamp: aPageError.timeStamp,
      warning: !!(aPageError.flags & aPageError.warningFlag),
      error: !!(aPageError.flags & aPageError.errorFlag),
      exception: !!(aPageError.flags & aPageError.exceptionFlag),
      strict: !!(aPageError.flags & aPageError.strictFlag),
    };
  }
function WCA_preparePageErrorForRemote ( aPageError ) { return { message : aPageError . message , errorMessage : aPageError . errorMessage , sourceName : aPageError . sourceName , lineText : aPageError . sourceLine , lineNumber : aPageError . lineNumber , columnNumber : aPageError . columnNumber , category : aPageError . category , timeStamp : aPageError . timeStamp , warning : ! ! ( aPageError . flags & aPageError . warningFlag ) , error : ! ! ( aPageError . flags & aPageError . errorFlag ) , exception : ! ! ( aPageError . flags & aPageError . exceptionFlag ) , strict : ! ! ( aPageError . flags & aPageError . strictFlag ) , } ; }
Prepare an nsIScriptError to be sent to the client.
Prepare an nsIScriptError to be sent to the client .