B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Evaluate a string in the active tab content window.
   *
   * @param string aString
   *        The script you want evaluated.
   * @return mixed
   *         The script evaluation result.
   */
Evaluate a string in the active tab content window.
@param string aString
The script you want evaluated.
@return mixed
The script evaluation result.
Evaluate a string in the active tab content window . @param string aString The script you want evaluated . @return mixed The script evaluation result .
function SP_evalInContentSandbox(aString)
  {
    let error, result;
    try {
      result = Cu.evalInSandbox(aString, this.contentSandbox, "1.8",
                                "Scratchpad", 1);
    }
    catch (ex) {
      error = ex;
    }
    return [error, result];
  }
function SP_evalInContentSandbox ( aString ) { let error , result ; try { result = Cu . evalInSandbox ( aString , this . contentSandbox , "1.8" , "Scratchpad" , 1 ) ; } catch ( ex ) { error = ex ; } return [ error , result ] ; }
Evaluate a string in the active tab content window.
Evaluate a string in the active tab content window .