B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Execute the selected text (if any) or the entire editor content in the
   * current context. The evaluation result is inserted into the editor after
   * the selected text, or at the end of the editor content if there is no
   * selected text.
   */
Execute the selected text (if any) or the entire editor content in the
current context. The evaluation result is inserted into the editor after
the selected text, or at the end of the editor content if there is no
selected text.
Execute the selected text ( if any ) or the entire editor content in the current context . The evaluation result is inserted into the editor after the selected text or at the end of the editor content if there is no selected text .
function SP_display()
  {
    let [selectedText, error, result] = this.execute();
    if (!error) {
      this.writeAsComment(result);
    } else {
      this.writeAsErrorComment(error);
    }
  }
function SP_display ( ) { let [ selectedText , error , result ] = this . execute ( ) ; if ( ! error ) { this . writeAsComment ( result ) ; } else { this . writeAsErrorComment ( error ) ; } }
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 .