Skip to content

Commit

Permalink
Fix deleteAllSnapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Feb 8, 2016
1 parent 51a6880 commit 2cfaf74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v8-profiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ var profiler = {
},

deleteAllSnapshots: function () {
binding.heap.snapshots.forEach(function(snapshot) {
snapshot.delete();
Object.keys(binding.heap.snapshots).forEach(function(key) {
binding.heap.snapshots[key].delete();
});
},

Expand Down

0 comments on commit 2cfaf74

Please # to comment.