)]}'
{
  "commit": "f98294088ced875aa2652461d123204a9aa2d538",
  "tree": "3620fbe607e1a3042937cf9281942752008def0c",
  "parents": [
    "956d591f69eda7d5d422e1b9a04aef01641a8658"
  ],
  "author": {
    "name": "Brett Wilson",
    "email": "brettw@chromium.org",
    "time": "Mon Mar 19 23:36:09 2018 +0000"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Mon Mar 19 23:36:09 2018 +0000"
  },
  "message": "GN: Don\u0027t crash when mutating the list in a foreach.\n\nAvoid a crash caused by mutation of the list being iterated over from inside\nthe foreach loop. This does a full copy of the the iterated list since the\ncode inside can\u0027t mutate the array via the loop variable anyway. Although\ntheoretically slower, this doesn\u0027t seem to have a measurable performance\nregression in practice (we generally iterate over few large lists).\n\nAdds documentation and tests for iteration while mutating the underlying list\nvariable.\n\nBug: 818525\nChange-Id: I221fa230685b8998f5874154cad8d5c655b8006c\nReviewed-on: https://chromium-review.googlesource.com/959228\nCommit-Queue: Brett Wilson \u003cbrettw@chromium.org\u003e\nReviewed-by: Roland McGrath \u003cmcgrathr@chromium.org\u003e\nCr-Original-Commit-Position: refs/heads/master@{#544209}\nCr-Mirrored-From: https://chromium.googlesource.com/chromium/src\nCr-Mirrored-Commit: dcba727e7e8b00cb26c4d797d956d48d2e98371f",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e94fbe6ed5bfe100742bd16e4306b3a95dbdeb2b",
      "old_mode": 33188,
      "old_path": "tools/gn/function_foreach.cc",
      "new_id": "b0af694bc304b5ef4774789286af6e56659aee0d",
      "new_mode": 33188,
      "new_path": "tools/gn/function_foreach.cc"
    },
    {
      "type": "modify",
      "old_id": "462d7142dfb4c31396235e89ee513b43941c673d",
      "old_mode": 33188,
      "old_path": "tools/gn/function_foreach_unittest.cc",
      "new_id": "3886724b7b88ea5cb37eb47166b2a6a79f2e83c5",
      "new_mode": 33188,
      "new_path": "tools/gn/function_foreach_unittest.cc"
    }
  ]
}
