B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Execute the selected text (if any) or the entire editor content in the
   * current context.
   * @return mixed
   *         The script evaluation result.
   */
Execute the selected text (if any) or the entire editor content in the
current context.
@return mixed
The script evaluation result.
Execute the selected text ( if any ) or the entire editor content in the current context . @return mixed The script evaluation result .
function SP_execute()
  {
    let selection = this.selectedText || this.getText();
    let [error, result] = this.evalForContext(selection);
    return [selection, error, result];
  }
function SP_execute ( ) { let selection = this . selectedText || this . getText ( ) ; let [ error , result ] = this . evalForContext ( selection ) ; return [ selection , error , result ] ; }
Execute the selected text (if any) or the entire editor content in the
 current context.
Execute the selected text ( if any ) or the entire editor content in the current context .