Bug 948134 - Fix "value is not defined" in PlacesDBUtils.jsm. r=adw, a=typo
authorJason Orendorff <jorendorff@mozilla.com>
Mon, 16 Dec 2013 06:02:26 -0600
changeset 167751 0610a4bd7f258c81ae4434e8f81ee9cc95bc0719
parent 167746 344287e4c1cfc8aed374167fcb088a6e72d365c4
child 167752 703a5bc03856e10808733be6d758482669129fb2
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, typo
bugs948134
milestone27.0
Bug 948134 - Fix "value is not defined" in PlacesDBUtils.jsm. r=adw, a=typo
toolkit/components/places/PlacesDBUtils.jsm
--- a/toolkit/components/places/PlacesDBUtils.jsm
+++ b/toolkit/components/places/PlacesDBUtils.jsm
@@ -960,18 +960,18 @@ this.PlacesDBUtils = {
       places_root: PlacesUtils.placesRootId
     };
 
     let outstandingProbes = 0;
 
     function reportResult(aProbe, aValue) {
       outstandingProbes--;
 
+      let value = aValue;
       try {
-        let value = aValue;
         if ("callback" in aProbe) {
           value = aProbe.callback(value);
         }
         if (isFinite(value)) {
           probeValues[aProbe.histogram] = value;
           Services.telemetry.getHistogramById(aProbe.histogram)
                             .add(value);
         }