text: "use strict";
  var getURL = require("../../Ch1_WhatsPromises/src/xhr-promise").getURL;
  var request = {
      comment: function getComment() {
          return getURL('http://azu.github.io/promises-book/json/comment.json').then(JSON.parse);
      },
      people: function getPeople() {
          return getURL('http://azu.github.io/promises-book/json/people.json').then(JSON.parse);
      }
  };
  function main() {
      function recordValue(results, value) {
          results.push(value);
          return results;
      }
      // [] は記録する初期値を部分適用している
      var pushValue = recordValue.bind(null, []);
      return request.comment()
          .then(pushValue)
          .then(request.people)
          .then(pushValue);
  }
  
  module.exports.main = main;
  module.exports.request = request;