function TA_onScripts(aRequest) {
    // Get the script list from the debugger.
    for (let s of this.dbg.findScripts()) {
      this._addScript(s);
    }
    // Build the cache.
    let scripts = [];
    for (let url in this._scripts) {
      for (let i = 0; i < this._scripts[url].length; i++) {
        if (!this._scripts[url][i]) {
          continue;
        }
        let script = {
          url: url,
          startLine: i,
          lineCount: this._scripts[url][i].lineCount
        };
        scripts.push(script);
      }
    }

    let packet = { from: this.actorID,
                   scripts: scripts };
    return packet;
  }
/**
   * Handle a protocol request to return the list of loaded scripts.
   */
Handle a protocol request to return the list of loaded scripts.
Handle a protocol request to return the list of loaded scripts .
function TA_onScripts(aRequest) {
    for (let s of this.dbg.findScripts()) {
      this._addScript(s);
    }
    let scripts = [];
    for (let url in this._scripts) {
      for (let i = 0; i < this._scripts[url].length; i++) {
        if (!this._scripts[url][i]) {
          continue;
        }
        let script = {
          url: url,
          startLine: i,
          lineCount: this._scripts[url][i].lineCount
        };
        scripts.push(script);
      }
    }
    let packet = { from: this.actorID,
                   scripts: scripts };
    return packet;
  }
function TA_onScripts ( aRequest ) { for ( let s of this . dbg . findScripts ( ) ) { this . _addScript ( s ) ; } let scripts = [ ] ; for ( let url in this . _scripts ) { for ( let i = 0 ; i < this . _scripts [ url ] . length ; i ++ ) { if ( ! this . _scripts [ url ] [ i ] ) { continue ; } let script = { url : url , startLine : i , lineCount : this . _scripts [ url ] [ i ] . lineCount } ; scripts . push ( script ) ; } } let packet = { from : this . actorID , scripts : scripts } ; return packet ; }
Handle a protocol request to return the list of loaded scripts.
Handle a protocol request to return the list of loaded scripts .
// Get the script list from the debugger. // Build the cache.