Bug 1350844 - Fix typoed variable name. r=sfink, a=NPOTB
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 04 Apr 2017 18:16:12 -0400
changeset 395664 c82173e613312e940362b2a7c12ff96d63b6f602
parent 395663 893b218745aa6a310cac3aef963b42ea21e117f5
child 395665 1ed88ff1fc58ddb9c3f5231c28d61b63f28859b1
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink, NPOTB
bugs1350844
milestone54.0a2
Bug 1350844 - Fix typoed variable name. r=sfink, a=NPOTB
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -4459,20 +4459,20 @@ JSCompartment::findDeadProxyZoneEdges(bo
     // wrappers do not need to be scanned.
     *foundAny = false;
     for (js::WrapperMap::Enum e(crossCompartmentWrappers); !e.empty(); e.popFront()) {
         Value value = e.front().value().get();
         if (value.isObject()) {
             if (IsDeadProxyObject(&value.toObject())) {
                 *foundAny = true;
                 CrossCompartmentKey& key = e.front().mutableKey();
-                Zone* wrapperZone = key.as<JSObject*>()->zone();
-                if (!wrapperZone->isGCMarking())
+                Zone* wrappedZone = key.as<JSObject*>()->zone();
+                if (!wrappedZone->isGCMarking())
                     continue;
-                if (!wrapperZone->gcZoneGroupEdges().put(zone()))
+                if (!wrappedZone->gcZoneGroupEdges().put(zone()))
                     return false;
             }
         }
     }
 
     return true;
 }