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 175341 e4fe9b91635eb2d0f15500728b8696afed1adbd7
parent 175340 e719a7a341c40db4f60ce0b7eca101fa27c7d54e
child 175342 a5d8e2a7f24559cce2e1fb72cdff1a3554569a31
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, typo
bugs948134
milestone28.0a2
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);
         }
         probeValues[aProbe.histogram] = value;
         Services.telemetry.getHistogramById(aProbe.histogram).add(value);
       } catch (ex) {
         Components.utils.reportError("Error adding value " + value +
                                      " to histogram " + aProbe.histogram +