Bug 1350844 - Fix typoed variable name. r=sfink, a=NPOTB
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 04 Apr 2017 18:16:12 -0400
changeset 355574 0ce4196ab86eda4354b8aafcb9cb8f3f4dd76950
parent 355573 27493ca827822bb6341444b0c5cdfb65511537c2
child 355575 74e9f13c554fe3d75e388d0598c5d05892dfccc3
push id7001
push userryanvm@gmail.com
push dateTue, 04 Apr 2017 22:40:19 +0000
treeherdermozilla-esr52@d7d87adfe186 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink, NPOTB
bugs1350844
milestone52.0.3
Bug 1350844 - Fix typoed variable name. r=sfink, a=NPOTB
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -4434,20 +4434,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;
 }